From f64447a2ca8d6a6412d0f5fb5fe83fdebe91821e Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Wed, 30 Oct 2024 08:42:33 +0500 Subject: [PATCH] opmimize --- src/diskquota_utility.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/diskquota_utility.c b/src/diskquota_utility.c index f530d6a0..b87b3308 100644 --- a/src/diskquota_utility.c +++ b/src/diskquota_utility.c @@ -1236,10 +1236,8 @@ set_per_segment_quota(PG_FUNCTION_ARGS) int worker_spi_get_extension_version(int *major, int *minor) { - int ret; int state = SPI_connect_wrapper(); - - ret = SPI_execute("select extversion from pg_extension where extname = 'diskquota'", true, 0); + int ret = SPI_execute("select extversion from pg_extension where extname = 'diskquota'", true, 0); if (SPI_processed == 0) {