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

Commit642aadf

Browse files
committed
Don't track DEALLOCATE in pg_stat_statements.
We also don't track PREPARE, nor do we track planning time in general, solet's ignore DEALLOCATE as well for consistency.Backpatch to 9.4, but not further than that. Although it seems unlikely thatanyone is relying on the current behavior, this is a behavioral change.Fabien Coelho
1 parent73e47b7 commit642aadf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,10 +955,13 @@ pgss_ProcessUtility(Node *parsetree, const char *queryString,
955955
* calculated from the query tree) would be used to accumulate costs of
956956
* ensuing EXECUTEs. This would be confusing, and inconsistent with other
957957
* cases where planning time is not included at all.
958+
*
959+
* Likewise, we don't track execution of DEALLOCATE.
958960
*/
959961
if (pgss_track_utility&&pgss_enabled()&&
960962
!IsA(parsetree,ExecuteStmt)&&
961-
!IsA(parsetree,PrepareStmt))
963+
!IsA(parsetree,PrepareStmt)&&
964+
!IsA(parsetree,DeallocateStmt))
962965
{
963966
instr_timestart;
964967
instr_timeduration;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp