]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix an oversight in an 8.3-era patch: pgstat_initstats should allow stats
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2009 22:49:56 +0000 (22:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Oct 2009 22:49:56 +0000 (22:49 +0000)
to be collected for sequences.

Report and fix by Akira Kurosawa

src/backend/postmaster/pgstat.c

index 37808735c9dd9a99efc49c2dbe07d52411c72fe5..05140c42791e69332e6d65afd3e398aba07cc47e 100644 (file)
@@ -13,7 +13,7 @@
  *
  *     Copyright (c) 2001-2009, PostgreSQL Global Development Group
  *
- *     $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.189 2009/06/11 14:49:01 momjian Exp $
+ *     $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.189.2.1 2009/10/02 22:49:56 tgl Exp $
  * ----------
  */
 #include "postgres.h"
@@ -1413,7 +1413,8 @@ pgstat_initstats(Relation rel)
        /* We only count stats for things that have storage */
        if (!(relkind == RELKIND_RELATION ||
                  relkind == RELKIND_INDEX ||
-                 relkind == RELKIND_TOASTVALUE))
+                 relkind == RELKIND_TOASTVALUE ||
+                 relkind == RELKIND_SEQUENCE))
        {
                rel->pgstat_info = NULL;
                return;