pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix incorrect checking of deferred exclusion constraint after a
6+ messages / 1 participants
[nested] [flat]

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/b93c8eaf8c35485175358c552cd5adce0e197ec9

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/dd75518d523a1e3650b5d5ad20c755a000425739

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/46f9acd3ef90f744e94f11e3de29255ce65ce610

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4d3d9719d28ff9956540c36a05a4846b55b0234b

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/7d09fdf82363c3d89ce350058a7a940ee843f048

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Fix incorrect checking of deferred exclusion constraint after a
@ 2015-05-11 16:25  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2015-05-11 16:25 UTC (permalink / raw)
  To: pgsql-committers

Fix incorrect checking of deferred exclusion constraint after a HOT update.

If a row that potentially violates a deferred exclusion constraint is
HOT-updated later in the same transaction, the exclusion constraint would
be reported as violated when the check finally occurs, even if the row(s)
the new row originally conflicted with have since been removed.  This
happened because the wrong TID was passed to check_exclusion_constraint(),
causing the live HOT-updated row to be seen as a conflicting row rather
than recognized as the row-under-test.

Per bug #13148 from Evan Martin.  It's been broken since exclusion
constraints were invented, so back-patch to all supported branches.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/20781765f77c1fb6465aba97d211636ce92e7a0e

Modified Files
--------------
src/backend/commands/constraint.c          |   17 +++++++++++------
src/test/regress/input/constraints.source  |   10 ++++++++++
src/test/regress/output/constraints.source |   14 ++++++++++++++
3 files changed, 35 insertions(+), 6 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2015-05-11 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>
2015-05-11 16:25 pgsql: Fix incorrect checking of deferred exclusion constraint after a Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox