pgsql: Properly adjust pointers when tuples are moved during CLUSTER. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Properly adjust pointers when tuples are moved during CLUSTER.
Date
Msg-id E1bLDSY-00046W-Ln@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix a prototype which is inconsistent with the function definiti
Next
From: Robert Haas
Date:
Subject: pgsql: Fix typo in comment.