diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index bd6bef63..80845e9b 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -1233,8 +1233,6 @@ pgsm_ProcessUtility(PlannedStmt *pstmt, const char *queryString, * To be absolutely certain we don't mess up the nesting level, * evaluate the bump_level condition just once. */ - -#if PG_VERSION_NUM >= 17000 bool bump_level = !IsA(parsetree, ExecuteStmt) && !IsA(parsetree, PrepareStmt) && @@ -1245,8 +1243,6 @@ pgsm_ProcessUtility(PlannedStmt *pstmt, const char *queryString, PG_TRY(); { -#endif - #if PG_VERSION_NUM >= 140000 if (prev_ProcessUtility) prev_ProcessUtility(pstmt, queryString, @@ -1283,8 +1279,6 @@ pgsm_ProcessUtility(PlannedStmt *pstmt, const char *queryString, dest, completionTag); #endif - -#if PG_VERSION_NUM >= 17000 if (bump_level) nesting_level--; } @@ -1296,7 +1290,6 @@ pgsm_ProcessUtility(PlannedStmt *pstmt, const char *queryString, } PG_END_TRY(); } -#endif } #if PG_VERSION_NUM < 130000