From 11602fd9611d9c5e8c8a6eb47101a145a389d394 Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Thu, 31 Oct 2024 12:03:32 +0500 Subject: [PATCH] mv --- src/diskquota_utility.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/diskquota_utility.c b/src/diskquota_utility.c index 4a5d6700..252d32cd 100644 --- a/src/diskquota_utility.c +++ b/src/diskquota_utility.c @@ -469,7 +469,6 @@ diskquota_resume(PG_FUNCTION_ARGS) static bool is_database_empty(void) { - int ret; TupleDesc tupdesc; bool is_empty = false; @@ -479,7 +478,7 @@ is_database_empty(void) */ bool connected_in_this_function = SPI_connect_if_not_yet(); - ret = SPI_execute( + int ret = SPI_execute( "INSERT INTO diskquota.state SELECT (count(relname) = 0)::int " "FROM " " pg_class AS c, "