From 895a3fb65812899b531191fd981acfd0fc551cfc Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 2 Oct 2009 22:50:03 +0000 Subject: [PATCH] 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 --- src/backend/postmaster/pgstat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index 73a772d444..8447b70cf9 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2008, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.169.2.1 2008/04/03 16:27:32 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.169.2.2 2009/10/02 22:50:03 tgl Exp $ * ---------- */ #include "postgres.h" @@ -1121,7 +1121,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; -- 2.50.1