pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add support for partitioned tables and indexes in REINDEX
Date: Tue, 8 Sep 2020 11:39:12 +0900
Message-ID: <20200908023912.GC19261@paquier.xyz> (raw)
In-Reply-To: <1725723.1599531385@sss.pgh.pa.us>
References: <E1kFSBj-00062c-Mu@gemulon.postgresql.org>
	<1725723.1599531385@sss.pgh.pa.us>

On Mon, Sep 07, 2020 at 10:16:25PM -0400, Tom Lane wrote:
> Michael Paquier <michael@paquier.xyz> writes:
>> Add support for partitioned tables and indexes in REINDEX
> 
> Buildfarm isn't finding the isolation test to be stable.

Yes, I have noticed the failure, and waited for more data to gather
while thinking about what I could do.  I have not come up with
anything, at least yet, so for now I have just removed the test.  The
thing was rather limited as-is as it was able just interact with the
first transaction of REINDEX building the list of partitions.
Perhaps, by using a fourth session taking a SHARE lock while another
uses at least a SHARE UPDATE EXCLUSIVE lock on one of the partitions,
it should be possible to make REINDEX wait in one of its inner
transactions for a partition.  It may be tricky to make that reliable
for the buildfarm though.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (3+ messages)

Message-ID: <20200908023912.GC19261@paquier.xyz>
Permalink:  ../20200908023912.GC19261@paquier.xyz/
Also on:    postgresql.org/message-id/20200908023912.GC19261@paquier.xyz

 · 

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: michael@paquier.xyz, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add support for partitioned tables and indexes in REINDEX
  In-Reply-To: <20200908023912.GC19261@paquier.xyz>
  References: <E1kFSBj-00062c-Mu@gemulon.postgresql.org> <1725723.1599531385@sss.pgh.pa.us> <20200908023912.GC19261@paquier.xyz>

* 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