diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-12-11 19:37:03 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-12-11 19:37:03 -0500 |
commit | 0c12be853a4e0367164dd59437598c7078809e4d (patch) | |
tree | 6d5b8690dfe39ac15e45687f7568c60b58f54c2c /contrib/postgres_fdw/postgres_fdw.c | |
parent | 390ed56eb7fb8cc4ba2a7cd6360b41883601908e (diff) | |
download | postgresql-0c12be853a4e0367164dd59437598c7078809e4d.tar.gz postgresql-0c12be853a4e0367164dd59437598c7078809e4d.zip |
Fix corner case where SELECT FOR UPDATE could return a row twice.
In READ COMMITTED mode, if a SELECT FOR UPDATE discovers it has to redo
WHERE-clause checking on rows that have been updated since the SELECT's
snapshot, it invokes EvalPlanQual processing to do that. If this first
occurs within a non-first child table of an inheritance tree, the previous
coding could accidentally re-return a matching row from an earlier,
already-scanned child table. (And, to add insult to injury, I think this
could make it miss returning a row that should have been returned, if the
updated row that this happens on should still have passed the WHERE qual.)
Per report from Kyotaro Horiguchi; the added isolation test is based on his
test case.
This has been broken for quite awhile, so back-patch to all supported
branches.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions