pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: REINDEX CONCURRENTLY
Date: Fri, 29 Mar 2019 17:09:27 +0900
Message-ID: <20190329080927.GB1954@paquier.xyz> (raw)
In-Reply-To: <E1h9luf-0005tr-VX@gemulon.postgresql.org>
References: <E1h9luf-0005tr-VX@gemulon.postgresql.org>

Hi Peter,

On Fri, Mar 29, 2019 at 07:26:53AM +0000, Peter Eisentraut wrote:
> REINDEX CONCURRENTLY
> 
> This adds the CONCURRENTLY option to the REINDEX command.  A REINDEX
> CONCURRENTLY on a specific index creates a new index (like CREATE
> INDEX CONCURRENTLY), then renames the old index away and the new index
> in place and adjusts the dependencies, and then drops the old
> index (like DROP INDEX CONCURRENTLY).  The REINDEX command also has
> the capability to run its other variants (TABLE, DATABASE) with the
> CONCURRENTLY option (but not SYSTEM).
> 
> The reindexdb command gets the --concurrently option.

A couple of buildfarm members using clang are not happy with this
commit:
 REINDEX SCHEMA CONCURRENTLY schema_to_reindex;
+WARNING:  you don't own a lock of type ShareUpdateExclusiveLock

For example longfin and dragonet:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=dragonet&dt=2019-03-29%2007%3A28%3A01
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=longfin&dt=2019-03-29%2007%3A29%3A04

I cannot dig into that myself now unfortunately..
--
Michael

Attachments:

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

view thread (2+ messages)

Message-ID: <20190329080927.GB1954@paquier.xyz>
Permalink:  ../20190329080927.GB1954@paquier.xyz/
Also on:    postgresql.org/message-id/20190329080927.GB1954@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, peter@eisentraut.org
  Subject: Re: pgsql: REINDEX CONCURRENTLY
  In-Reply-To: <20190329080927.GB1954@paquier.xyz>
  References: <E1h9luf-0005tr-VX@gemulon.postgresql.org> <20190329080927.GB1954@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