diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-02 22:49:50 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-10-02 22:49:50 +0000 |
commit | 66a8417f4e595fe72bf610f58fa013823f00cb47 (patch) | |
tree | b6b2ada98fecf04f4d83028c417b6ff2c2707b98 /src | |
parent | e66d714386cd3040b328d6a894802d01dd1d395d (diff) | |
download | postgresql-66a8417f4e595fe72bf610f58fa013823f00cb47.tar.gz postgresql-66a8417f4e595fe72bf610f58fa013823f00cb47.zip |
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
Diffstat (limited to 'src')
-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 fca054625ba..fac2100e831 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.191 2009/09/04 22:32:33 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.192 2009/10/02 22:49:50 tgl Exp $ * ---------- */ #include "postgres.h" @@ -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; |