mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Remove should_free arguments to tuplesort routines.
Since commit e94568ecc1
, the answer is
always "false", and we do not need to complicate the API by arranging
to return a constant value.
Peter Geoghegan
Discussion: http://postgr.es/m/CAM3SWZQWZZ_N=DmmL7tKy_OUjGH_5mN=N=A6h7kHyyDvEhg2DA@mail.gmail.com
This commit is contained in:
@ -1057,11 +1057,10 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex, bool verbose,
|
||||
for (;;)
|
||||
{
|
||||
HeapTuple tuple;
|
||||
bool shouldfree;
|
||||
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
||||
tuple = tuplesort_getheaptuple(tuplesort, true, &shouldfree);
|
||||
tuple = tuplesort_getheaptuple(tuplesort, true);
|
||||
if (tuple == NULL)
|
||||
break;
|
||||
|
||||
@ -1069,9 +1068,6 @@ copy_heap_data(Oid OIDNewHeap, Oid OIDOldHeap, Oid OIDOldIndex, bool verbose,
|
||||
oldTupDesc, newTupDesc,
|
||||
values, isnull,
|
||||
NewHeap->rd_rel->relhasoids, rwstate);
|
||||
|
||||
if (shouldfree)
|
||||
heap_freetuple(tuple);
|
||||
}
|
||||
|
||||
tuplesort_end(tuplesort);
|
||||
|
Reference in New Issue
Block a user