diff options
| author | Tom Lane | 2009-10-02 22:49:56 +0000 |
|---|---|---|
| committer | Tom Lane | 2009-10-02 22:49:56 +0000 |
| commit | 70b533e029728cd364cac5134d3ba991044cf3ef (patch) | |
| tree | a5e945f4c704d86baeb21ef2d5be12b515f9ffdb | |
| parent | c3110e49b1601941e0173e8d75378f943b4ca6fd (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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 37808735c9d..05140c42791 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -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; |
