postgresql/src/backend/utils/sort
Heikki Linnakangas 7ac4a389a7 Don't create "holes" in BufFiles, in the new logtape code.
The "Simplify tape block format" commit ignored the rule that blocks
returned by ltsGetFreeBlock() must be written out in the same order, at
least in the first write pass. To fix, relax that requirement, by making
ltsWriteBlock() to detect if it's about to create a "hole" in the
underlying BufFile, and fill it with zeros instead.

Reported, analysed, and reviewed by Peter Geoghegan.

Discussion: https://www.postgresql.org/message-id/CAM3SWZRWdNtkhiG0GyiX_1mUAypiK3dV6-6542pYe2iEL-foTA@mail.gmail.com
2017-02-01 12:17:38 +02:00
..
.gitignore Speed up in-memory tuplesorting. 2012-02-15 12:13:32 -05:00
gen_qsort_tuple.pl Fix a low-probability crash in our qsort implementation. 2015-07-16 22:57:46 -04:00
logtape.c Don't create "holes" in BufFiles, in the new logtape code. 2017-02-01 12:17:38 +02:00
Makefile Fix VPATH builds, broken by my recent commit to speed up tuplesorting. 2012-02-15 15:53:53 -05:00
sortsupport.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tuplesort.c Fix NULL pointer dereference in tuplesort.c. 2017-01-16 13:53:40 -05:00
tuplestore.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00