Properly adjust pointers when tuples are moved during CLUSTER. Otherwise, when we abandon incremental memory accounting and use batch allocation for the final merge pass, we might crash. This has been broken since 0011c0091e886b874e485a46ff2c94222ffbf550.
Peter Geoghegan, tested by Noah Misch Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/1b0fc85077aadb3f4a965aff35c136398d859624 Modified Files -------------- src/backend/utils/sort/tuplesort.c | 54 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers