Fix an oversight in an 8.3-era patch: pgstat_initstats should allow stats
authorTom Lane <[email protected]>
Fri, 2 Oct 2009 22:49:50 +0000 (22:49 +0000)
committerTom Lane <[email protected]>
Fri, 2 Oct 2009 22:49:50 +0000 (22:49 +0000)
to be collected for sequences.

Report and fix by Akira Kurosawa

src/backend/postmaster/pgstat.c

index d409b50d934fd3a1fad5cadba7f32b4b8bdbc458..1a818efb1bacefa705dedae4b4a16b9bfa371958 100644 (file)
@@ -1415,7 +1415,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;