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

Robert Haas <rhaas@postgresql.org>

Commit: fc19c1801bd2dbee1043b0c0b62e07747d30ea1c
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-11-15T15:30:33Z
Releases: 10.0
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.

Files

PathChange+/−
src/backend/utils/sort/tuplesort.c modified +15 −2