From da2dc09c15af937fabbc122e9e4e30c8d41b0f90 Mon Sep 17 00:00:00 2001 From: Ivan Kovmir Date: Mon, 6 Oct 2025 10:43:24 +0200 Subject: [PATCH] Drop PostgreSQL <=13 support --- pg_show_plans.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pg_show_plans.c b/pg_show_plans.c index c0ec8e8..5163187 100644 --- a/pg_show_plans.c +++ b/pg_show_plans.c @@ -33,7 +33,7 @@ /* Constants and Macros */ PG_MODULE_MAGIC; -#if PG_VERSION_NUM < 120000 +#if PG_VERSION_NUM < 140000 #error "Unsupported PostgreSQL Version" #endif @@ -405,11 +405,7 @@ static bool is_allowed_role(void) { bool is_allowed_role = false; -#if PG_VERSION_NUM >= 140000 is_allowed_role = is_member_of_role(GetUserId(), ROLE_PG_READ_ALL_STATS); -#else - is_allowed_role = is_member_of_role(GetUserId(), DEFAULT_ROLE_READ_ALL_STATS); -#endif return is_allowed_role; }