postgresql/src/backend/optimizer/path
Robert Haas 2f17844104 Allow UPDATE to move rows between partitions.
When an UPDATE causes a row to no longer match the partition
constraint, try to move it to a different partition where it does
match the partition constraint.  In essence, the UPDATE is split into
a DELETE from the old partition and an INSERT into the new one.  This
can lead to surprising behavior in concurrency scenarios because
EvalPlanQual rechecks won't work as they normally did; the known
problems are documented.  (There is a pending patch to improve the
situation further, but it needs more review.)

Amit Khandekar, reviewed and tested by Amit Langote, David Rowley,
Rajkumar Raghuwanshi, Dilip Kumar, Amul Sul, Thomas Munro, Álvaro
Herrera, Amit Kapila, and me.  A few final revisions by me.

Discussion: http://postgr.es/m/CAJ3gD9do9o2ccQ7j7+tSgiE1REY65XRiMb=yJO3u3QhyP8EEPQ@mail.gmail.com
2018-01-19 15:33:06 -05:00
..
Makefile Extract restriction OR clauses whether or not they are indexable. 2013-12-30 12:24:37 -05:00
allpaths.c Allow UPDATE to move rows between partitions. 2018-01-19 15:33:06 -05:00
clausesel.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
costsize.c Code review for Parallel Append. 2018-01-04 07:56:09 -05:00
equivclass.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
indxpath.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
joinpath.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
joinrels.c Reorder C includes 2018-01-17 18:10:05 -05:00
pathkeys.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
tidpath.c Update copyright for 2018 2018-01-02 23:30:12 -05:00