Thread: pgsql: Limit the number of number of tapes used for a sort to 501.

pgsql: Limit the number of number of tapes used for a sort to 501.

From
Robert Haas
Date:
Limit the number of number of tapes used for a sort to 501.

Gigantic numbers of tapes don't work out well.

Original patch by Peter Geoghegan; comments entirely rewritten by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fc19c1801bd2dbee1043b0c0b62e07747d30ea1c

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