Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit66a8417

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 parente66d714 commit66a8417

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/postmaster/pgstat.c

Lines changed: 3 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp