Content-Length: 260082 | pFad | http://github.com/postgrespro/postgres/commit/78a3c9b6a5f6cc84abaf4e13deb58c620eb2161b

1F pg_stat_statements forgot to let previous occupant of hook get contro… · postgrespro/postgres@78a3c9b · GitHub
Skip to content

Commit 78a3c9b

Browse files
committed
pg_stat_statements forgot to let previous occupant of hook get control too.
pgss_post_parse_analyze() neglected to pass the call on to any earlier occupant of the post_parse_analyze_hook. There are no other users of that hook in contrib/, and most likely none in the wild either, so this is probably just a latent bug. But it's a bug nonetheless, so back-patch to 9.2 where this code was introduced.
1 parent 602b27a commit 78a3c9b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,9 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query)
767767
{
768768
pgssJumbleState jstate;
769769

770+
if (prev_post_parse_analyze_hook)
771+
prev_post_parse_analyze_hook(pstate, query);
772+
770773
/* Assert we didn't do this already */
771774
Assert(query->queryId == 0);
772775

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/78a3c9b6a5f6cc84abaf4e13deb58c620eb2161b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy