Skip to content

Commit b4b0ba5

Browse files
committed
we should to post_parse_analyze_hook everytime
1 parent 0f9f12c commit b4b0ba5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/profiler.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,9 +1105,7 @@ plpgsql_profiler_install_fake_queryid_hook(PG_FUNCTION_ARGS)
11051105
if (post_parse_analyze_hook == profiler_fake_queryid_hook)
11061106
PG_RETURN_VOID();
11071107

1108-
if (post_parse_analyze_hook == NULL)
1109-
prev_post_parse_analyze_hook = post_parse_analyze_hook;
1110-
1108+
prev_post_parse_analyze_hook = post_parse_analyze_hook;
11111109
post_parse_analyze_hook = profiler_fake_queryid_hook;
11121110

11131111
PG_RETURN_VOID();

0 commit comments

Comments
 (0)