summaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPavan Deolasee2014-10-31 07:41:38 +0000
committerPavan Deolasee2015-04-15 05:46:38 +0000
commit3e4346857d73841373b3424147e104a58802f8f3 (patch)
treea4c1622ef4f7be72c408eeaf4bd039cffc29d209 /src/backend/tcop/postgres.c
parente8a3eea32e7b353754842100020dde8c244cbb16 (diff)
Allow pg_stat_statements to work with XL
XL uses a post-post-analyze hook for it's internal purposes. But this overrides any existing hooks, including that of pg_stat_statements. Setup things so that the previous hook gets called appropriately
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r--src/backend/tcop/postgres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 43d37f927c..1143be2cc9 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -4285,6 +4285,8 @@ PostgresMain(int argc, char *argv[], const char *username)
}
/* Set up the post parse analyze hook */
+ if (post_parse_analyze_hook)
+ prev_ParseAnalyze_callback = post_parse_analyze_hook;
post_parse_analyze_hook = ParseAnalyze_callback;
/* if we exit, try to release cluster lock properly */