pgsql: Properly adjust pointers when tuples are moved during CLUSTER.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Properly adjust pointers when tuples are moved during CLUSTER.
Date: 2016-07-07 17:51:34
Message-ID: E1bLDSY-00046W-Ln@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-07-07 20:15:56 pgsql: Fix typo in comment.
Previous Message Robert Haas 2016-07-07 15:35:19 pgsql: Clarify resource utilization of parallel query.