Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 66a8417

Browse files
committed
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
1 parent e66d714 commit 66a8417

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/postmaster/pgstat.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
1515
*
16-
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.191 2009/09/04 22:32:33 tgl Exp $
16+
* $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.192 2009/10/02 22:49:50 tgl Exp $
1717
* ----------
1818
*/
1919
#include "postgres.h"
@@ -1415,7 +1415,8 @@ pgstat_initstats(Relation rel)
14151415
/* We only count stats for things that have storage */
14161416
if (!(relkind == RELKIND_RELATION ||
14171417
relkind == RELKIND_INDEX ||
1418-
relkind == RELKIND_TOASTVALUE))
1418+
relkind == RELKIND_TOASTVALUE ||
1419+
relkind == RELKIND_SEQUENCE))
14191420
{
14201421
rel->pgstat_info = NULL;
14211422
return;

0 commit comments

Comments
 (0)