diff --git a/src/diskquota_utility.c b/src/diskquota_utility.c index a325237a..79b476a6 100644 --- a/src/diskquota_utility.c +++ b/src/diskquota_utility.c @@ -1731,7 +1731,7 @@ SPI_finish_my(bool connected, bool pushed_active_snap, bool ret) int rc; if (pushed_active_snap) PopActiveSnapshot(); if (connected && (rc = SPI_finish()) != SPI_OK_FINISH) - ereport(ERROR, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("[diskquota] SPI_finish failed"), + ereport(WARNING, (errcode(ERRCODE_INTERNAL_ERROR), errmsg("[diskquota] SPI_finish failed"), errdetail("%s", SPI_result_code_string(rc)))); if (ret) CommitTransactionCommand(); diff --git a/src/quotamodel.c b/src/quotamodel.c index 6fb34cd5..73400f6d 100644 --- a/src/quotamodel.c +++ b/src/quotamodel.c @@ -1200,7 +1200,7 @@ flush_to_table_size(void) } } /* update the table size by delete+insert in table table_size */ - else if (TableSizeEntryGetFlushFlag(tsentry, i)) // + else if (TableSizeEntryGetFlushFlag(tsentry, i)) { appendStringInfo(&delete_statement, "%s(%u,%d)", (delete_entries_num == 0) ? " " : ", ", tsentry->key.reloid, i);