diff options
author | Tom Lane | 2009-10-02 22:49:50 +0000 |
---|---|---|
committer | Tom Lane | 2009-10-02 22:49:50 +0000 |
commit | 2db81dd6cbeeb79f196be812cca2849e5526863c (patch) | |
tree | faa8990df2078ef3512d15395f04255fed8ca5e6 | |
parent | 330232cde55d5a6eec88ff8587cd580b9d3d807a (diff) |
Fix an oversight in an 8.3-era patch: pgstat_initstats should allow stats
to be collected for sequences.
Report and fix by Akira Kurosawa
-rw-r--r-- | src/backend/postmaster/pgstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index d409b50d93..1a818efb1b 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -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; |