From 3eac6a70d8294dfce5a14708bbd12e841149fb7e Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Tue, 24 Dec 2024 08:39:45 +0500 Subject: [PATCH] revert --- src/gp_activetable.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gp_activetable.c b/src/gp_activetable.c index 2efc6680..6e984547 100644 --- a/src/gp_activetable.c +++ b/src/gp_activetable.c @@ -924,10 +924,8 @@ load_table_size(StringInfoData *active_oids) int i; SPIPlanPtr plan; Portal portal; - - static const char *sql = "select tableid, size, segid from diskquota.table_size"; - - bool connected_in_this_function = SPI_connect_if_not_yet(); + char *sql = "select tableid, size, segid from diskquota.table_size"; + bool connected_in_this_function = SPI_connect_if_not_yet(); if ((plan = SPI_prepare(sql, 0, NULL)) == NULL) ereport(ERROR, (errmsg("[diskquota] SPI_prepare(\"%s\") failed", sql)));