From 6284404ac889ef783a9db988dffb685f7a72815a Mon Sep 17 00:00:00 2001 From: Georgy Shelkovy Date: Thu, 24 Oct 2024 09:50:15 +0500 Subject: [PATCH] remove unused parameter --- src/quotamodel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/quotamodel.c b/src/quotamodel.c index cd165aad..f1dae432 100644 --- a/src/quotamodel.c +++ b/src/quotamodel.c @@ -966,11 +966,10 @@ calculate_table_disk_usage(StringInfo active_oids, bool is_init) * and role_size_map */ - if ((plan = SPI_prepare(sql.data, 2, (Oid[]){OIDOID, INT4OID})) == NULL) + if ((plan = SPI_prepare(sql.data, 1, (Oid[]){OIDOID})) == NULL) ereport(ERROR, (errmsg("[diskquota] SPI_prepare(\"%s\") failed", sql.data))); - if ((portal = SPI_cursor_open(NULL, plan, (Datum[]){ObjectIdGetDatum(FirstNormalObjectId), Int32GetDatum(SEGCOUNT)}, - NULL, true)) == NULL) + if ((portal = SPI_cursor_open(NULL, plan, (Datum[]){ObjectIdGetDatum(FirstNormalObjectId)}, NULL, true)) == NULL) ereport(ERROR, (errmsg("[diskquota] SPI_cursor_open(\"%s\") failed", sql.data))); do