mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
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
This commit is contained in:
parent
c3110e49b1
commit
70b533e029
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2001-2009, PostgreSQL Global Development Group
|
* 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"
|
#include "postgres.h"
|
||||||
@ -1413,7 +1413,8 @@ pgstat_initstats(Relation rel)
|
|||||||
/* We only count stats for things that have storage */
|
/* We only count stats for things that have storage */
|
||||||
if (!(relkind == RELKIND_RELATION ||
|
if (!(relkind == RELKIND_RELATION ||
|
||||||
relkind == RELKIND_INDEX ||
|
relkind == RELKIND_INDEX ||
|
||||||
relkind == RELKIND_TOASTVALUE))
|
relkind == RELKIND_TOASTVALUE ||
|
||||||
|
relkind == RELKIND_SEQUENCE))
|
||||||
{
|
{
|
||||||
rel->pgstat_info = NULL;
|
rel->pgstat_info = NULL;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user