pgsql: Fix thinko in safeguard for negative availMem.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix thinko in safeguard for negative availMem.
Date: 2016-12-08 21:06:38
Message-ID: E1cF5tm-0002AL-Tw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-12-08 21:07:13 Re: pgsql: Fix accounting of memory needed for merge heap.
Previous Message Peter Geoghegan 2016-12-08 20:49:17 Re: pgsql: Fix accounting of memory needed for merge heap.