pgsql: Fix thinko in safeguard for negative availMem. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix thinko in safeguard for negative availMem.
Date
Msg-id E1cF5tm-0002AL-Tw@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix thinko in safeguard for negative availMem.

Also, use pass read_buffer_size * numInputTapes rather than just availMem
to USEMEM, to be neat.

Peter Geoghegan.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/64bc26f90d342ca343f5ba383a97691a58991204

Modified Files
--------------
src/backend/utils/sort/tuplesort.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgsql: Fix accounting of memory needed for merge heap.
Next
From: Heikki Linnakangas
Date:
Subject: Re: pgsql: Fix accounting of memory needed for merge heap.