pgsql: Assert that pre/post-fix updated tuples are on the same page dur

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Assert that pre/post-fix updated tuples are on the same page dur
Date: 2014-05-05 13:23:25
Message-ID: E1WhIrd-0008HT-Vp@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Assert that pre/post-fix updated tuples are on the same page during replay.

If they were not 'oldtup.t_data' would be dereferenced while set to NULL
in case of a full page image for block 0.

Do so primarily to silence coverity; but also to make sure this prerequisite
isn't changed without adapting the replay routine as that would appear to
work in many cases.

Andres Freund

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1460b199e6e748712253fa130d1c3368ba6ac861

Modified Files
--------------
src/backend/access/heap/heapam.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-05-05 13:23:26 pgsql: Use Size instead of uint32 to store result of sizeof()
Previous Message Heikki Linnakangas 2014-05-05 13:08:32 pgsql: Replace SYSTEMQUOTEs with Windows-specific wrapper functions.