Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Dec 24, 2024
1 parent ff6b7ad commit 3eac6a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/gp_activetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit 3eac6a7

Please sign in to comment.