Skip to content

Commit

Permalink
remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
RekGRpth committed Oct 24, 2024
1 parent 805e44b commit 6284404
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/quotamodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6284404

Please sign in to comment.