pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add isolation tests for snapshot behavior in ri_triggers.c
Date: Thu, 07 Apr 2022 18:32:09 +0000
Message-ID: <E1ncWvR-000m04-4G@gemulon.postgresql.org> (raw)

Add isolation tests for snapshot behavior in ri_triggers.c

They are to check the behavior of RI_FKey_check() and
ri_Check_Pk_Match().  A test case whereby RI_FKey_check() queries a
partitioned PK table under REPEATABLE READ isolation produces wrong
output due to a bug of the partition-descriptor logic and that is noted
as such in the comment in the test.  A subsequent commit will fix the
bug and replace the buggy output by the correct one.

Author: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/1627848.1636676261@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/00cb86e75d6dd13a8bc07f79c2cdbe20d96c2d92

Modified Files
--------------
src/test/isolation/expected/fk-snapshot.out | 124 ++++++++++++++++++++++++++++
src/test/isolation/isolation_schedule       |   1 +
src/test/isolation/specs/fk-snapshot.spec   |  61 ++++++++++++++
3 files changed, 186 insertions(+)



view thread (2+ messages)  latest in thread

Message-ID: <E1ncWvR-000m04-4G@gemulon.postgresql.org>
Permalink:  ../E1ncWvR-000m04-4G@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ncWvR-000m04-4G@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Add isolation tests for snapshot behavior in ri_triggers.c
  In-Reply-To: <E1ncWvR-000m04-4G@gemulon.postgresql.org>
  References: <E1ncWvR-000m04-4G@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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