From 634f0ce5801275984db81c5fa725169f337d1591 Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Tue, 25 Oct 2022 01:04:23 +0500 Subject: [PATCH] PG-174: Code cleanup. (#310) pg_stat_monitor is a bit longer; therefore, it requires some code cleanup. Therefore I decided to turn these tasks into multiple commits and PR to avoid various changes in one PR. This will ease the review and Q/A process. In this commit, I have done these tasks. 1 - Fixing compilation issue, cause by previous commit, where we removed the benchmarking code. It was causing problem for PostgreSQL-12. --- pg_stat_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index 8e5f0bd..72be810 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -394,7 +394,7 @@ pgss_post_parse_analyze(ParseState *pstate, Query *query, JumbleState *jstate) jstate, /* JumbleState */ PGSS_PARSE); /* pgssStoreKind */ } -#elif +#else /* * Post-parse-analysis hook: mark query with a queryId