pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: shihao zhong <zhong950419@gmail.com>
Cc: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Index drops during phase 1 of REINDEX CONCURRENTLY
Date: Sun, 15 Nov 2026 15:18:02 +0900
Message-ID: <avlOmgcbNp7KNpWI@paquier.xyz> (raw)
In-Reply-To: <CAGRkXqRNp73TCNsuOBvSzvCumkKZ+UdMFj6c5w-xH1WSPzYYog@mail.gmail.com>
References: <aver6A1EQEd2FaKq@paquier.xyz>
	<CAJTYsWWYAaODzPbc84TRGAxmKzL6UHtP-REBBKG-qma-f7=kuA@mail.gmail.com>
	<CAGRkXqRNp73TCNsuOBvSzvCumkKZ+UdMFj6c5w-xH1WSPzYYog@mail.gmail.com>

On Sat, Nov 14, 2026 at 11:22:59PM -0500, shihao zhong wrote:
> Would it make sense to open all the old indexes before the loop?

Hmm, yeah.  We could as well open the indexes when these are gathered
in the initial loop as we are in the same transaction.  Would you like
to write a patch to show your idea?  (I'm out most of next week so
won't have much time to look at what you have, but perhaps others
will.)
--
Michael

Attachments:

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

view thread (6+ messages)  latest in thread

Message-ID: <avlOmgcbNp7KNpWI@paquier.xyz>
Permalink:  ../avlOmgcbNp7KNpWI@paquier.xyz/
Also on:    postgresql.org/message-id/avlOmgcbNp7KNpWI@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-hackers@postgresql.org
  Cc: michael@paquier.xyz, zhong950419@gmail.com, ayushtiwari.slg01@gmail.com
  Subject: Re: Index drops during phase 1 of REINDEX CONCURRENTLY
  In-Reply-To: <avlOmgcbNp7KNpWI@paquier.xyz>
  References: <aver6A1EQEd2FaKq@paquier.xyz> <CAJTYsWWYAaODzPbc84TRGAxmKzL6UHtP-REBBKG-qma-f7=kuA@mail.gmail.com> <CAGRkXqRNp73TCNsuOBvSzvCumkKZ+UdMFj6c5w-xH1WSPzYYog@mail.gmail.com> <avlOmgcbNp7KNpWI@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