pgsql: Simplify check of modified attributes in heap_update - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Simplify check of modified attributes in heap_update
Date
Msg-id E1ctGzo-0005GN-3P@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Simplify check of modified attributes in heap_update

The old coding was getting more complicated as new things were added,
and it would be barely tolerable with upcoming WARM updates and other
future features such as indirect indexes.  The new coding incurs a small
performance cost in synthetic benchmark cases, and is barely measurable
in normal cases.  A much larger benefit is expected from WARM, which
could actually bolt its needs on top of the existing coding, but it is
much uglier and bug-prone than doing it on this new code.  Additional
optimization can be applied on top of this, if need be.

Reviewed-by: Pavan Deolasee, Amit Kapila, Mithun CY
Discussion: https://postgr.es/m/20161228232018.4hc66ndrzpz4g4wn@alvherre.pgsql
    https://postgr.es/m/CABOikdMJfz69dBNRTOZcB6s5A0tf8OMCyQVYQyR-WFFdoEwKMQ@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2fd8685e7fd9fddf16f99de1284a787d29781cc8

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


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Mark more functions parallel-restricted.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Update copyright year in recently added files