From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add some isolation tests for CLUSTER
Date: Tue, 26 Apr 2022 04:41:23 +0000
Message-ID: <E1njD0s-001AMU-Tn@gemulon.postgresql.org> (raw)
Add some isolation tests for CLUSTER
This commit adds two isolation tests for CLUSTER, using:
- A normal table, making sure that CLUSTER blocks and completes if the
table is locked by a concurrent session.
- A partitioned table with a partition owned by a different user. If
the partitioned table is locked by a concurrent session, CLUSTER on the
partitioned table should block. If the partition owned by a different
user is locked, CLUSTER on its partitioned table should complete and
skip the partition. 3f19e17 has added an early check to ignore such a
partition with a SQL regression test, but this was not checking that
CLUSTER should not block.
Discussion: https://postgr.es/m/YlqveniXn9AI6RFZ@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/21a10368eb3fce73f146d7e48b4d81496f60d965
Modified Files
--------------
.../expected/cluster-conflict-partition.out | 35 ++++++++++++++++++++
src/test/isolation/expected/cluster-conflict.out | 19 +++++++++++
src/test/isolation/isolation_schedule | 2 ++
.../specs/cluster-conflict-partition.spec | 37 ++++++++++++++++++++++
src/test/isolation/specs/cluster-conflict.spec | 30 ++++++++++++++++++
5 files changed, 123 insertions(+)
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: michael@paquier.xyz
Subject: Re: pgsql: Add some isolation tests for CLUSTER
In-Reply-To: <E1njD0s-001AMU-Tn@gemulon.postgresql.org>
References: <E1njD0s-001AMU-Tn@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