pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera from 2ndQuadrant <alvherre@alvh.no-ip.org>
To: Junwang Zhao <zhjwpku@gmail.com>
Cc: Kuntal Ghosh <kuntalghosh.2007@gmail.com>
Cc: Tender Wang <tndrwang@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18559: Crash after detaching a partition concurrently from another session
Date: Mon, 12 Aug 2024 14:24:27 -0400
Message-ID: <202408121824.gwvkmkugf6x7@alvherre.pgsql> (raw)
In-Reply-To: <CAEG8a3+qEsMW_R502GB9szReSGnhUvoNuvLci1wvw07+Lbegiw@mail.gmail.com>

On 2024-Aug-10, Junwang Zhao wrote:

> > IIUC, a simple fix would be to retry if an entry is not found. Attached a patch.
> 
> I can reproduce the issue, and the patch LGTM.

Interesting issue, thanks for reporting and putting together a
reproducer.  I have added some comments to the proposed patch, so here's
a v2 for it.  I'm going to write a commit message for it and push to all
branches since 14.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/
"La experiencia nos dice que el hombre peló millones de veces las patatas,
pero era forzoso admitir la posibilidad de que en un caso entre millones,
las patatas pelarían al hombre" (Ijon Tichy)

Attachments:

  v2-0001-Fix-creation-of-partition-descriptor-during-concu.patch (text/x-diff, 0B) download

view thread (12+ messages)  latest in thread

Message-ID: <202408121824.gwvkmkugf6x7@alvherre.pgsql>
Permalink:  ../202408121824.gwvkmkugf6x7@alvherre.pgsql/
Also on:    postgresql.org/message-id/202408121824.gwvkmkugf6x7@alvherre.pgsql

 ·  · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@alvh.no-ip.org, zhjwpku@gmail.com, kuntalghosh.2007@gmail.com, tndrwang@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18559: Crash after detaching a partition concurrently from another session
  In-Reply-To: <202408121824.gwvkmkugf6x7@alvherre.pgsql>

* 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