Commit 66a8417f authored by Tom Lane's avatar Tom Lane

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
parent e66d7143
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment