Commit 78a3c9b6 authored by Tom Lane's avatar Tom Lane

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.
parent 602b27ab
...@@ -767,6 +767,9 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query) ...@@ -767,6 +767,9 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query)
{ {
pgssJumbleState jstate; pgssJumbleState jstate;
if (prev_post_parse_analyze_hook)
prev_post_parse_analyze_hook(pstate, query);
/* Assert we didn't do this already */ /* Assert we didn't do this already */
Assert(query->queryId == 0); Assert(query->queryId == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment