aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/commit_ts.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2015-03-09 10:35:41 -0400
committerRobert Haas <rhaas@postgresql.org>2015-03-09 10:35:41 -0400
commit2720e96a9bd58b2af177c714c0c5402773e1cf30 (patch)
treebdcda4bf5165df903e9efc5bf9ddffd3828e83d2 /src/backend/access/transam/commit_ts.c
parentf1fd515b393a283d7368ce45a92709d2c7f9a991 (diff)
downloadpostgresql-2720e96a9bd58b2af177c714c0c5402773e1cf30.tar.gz
postgresql-2720e96a9bd58b2af177c714c0c5402773e1cf30.zip
Fix handling of sortKeys field in Tuplesortstate.
Commit 5cefbf5a6c4466ac6b1cc2a4316b4eba9108c802 introduced an assumption that this field would always be non-NULL when doing a merge pass, but that's not true. Without this fix, you can crash the server by building a hash index that is sufficiently large relative to maintenance_work_mem, or by triggering a large datum sort. Commit 5ea86e6e65dd2da3e9a3464484985d48328e7fe3 changed the comments for that field to say that it would be set in all cases except for the hash index case, but that wasn't (and still isn't) true. The datum-sort failure was spotted by Tomas Vondra; initial analysis of that failure was by Peter Geoghegan. The remaining issues were spotted by me during review of the surrounding code, and the patch is all my fault.
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions