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

Commit6f40ee4

Browse files
committed
pg_stat_statements: add missing check for pgss_enabled().
Make pgss_post_parse_analyze() more consistent with the other hooks,and avoid unnecessary overhead when pg_stat_statements.track=none.Author: Raymond MartinReviewed-by: Fabien COELHODiscussion:https://postgr.es/m/BN8PR21MB1217B003C4F79DE230AA36B9B1580%40BN8PR21MB1217.namprd21.prod.outlook.com
1 parent4214668 commit6f40ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query)
788788
Assert(query->queryId==UINT64CONST(0));
789789

790790
/* Safety check... */
791-
if (!pgss|| !pgss_hash)
791+
if (!pgss|| !pgss_hash|| !pgss_enabled())
792792
return;
793793

794794
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp