Re: md.c vs elog.c vs smgrreleaseall() in barrier

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Noah Misch <noah(at)leadboat(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: md.c vs elog.c vs smgrreleaseall() in barrier
Date: 2025-03-19 23:16:24
Message-ID: CA+hUKGJ+yqp4vrUYBpuT=FDFW39Y535OCz8=i+zKKtK4TNK=Ug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Mar 20, 2025 at 12:06 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> Ah - it effectively is already in a critical section, just a weirdly spelled one:
>
> 2025-03-19 19:00:06.398 EDT [2156613][client backend][0/3:0][psql] LOG: statement: DROP TABLE foo;
> 2025-03-19 19:00:06.404 EDT [2156613][client backend][0/0:43139][psql] ERROR: muahahaha
> 2025-03-19 19:00:06.404 EDT [2156613][client backend][0/0:43139][psql] STATEMENT: DROP TABLE foo;
> 2025-03-19 19:00:06.404 EDT [2156613][client backend][0/0:43139][psql] WARNING: AbortTransaction while in COMMIT state
> 2025-03-19 19:00:06.404 EDT [2156613][client backend][0/0:43139][psql] PANIC: cannot abort transaction 43139, it was already committed
>
> Obviously not great, but better than corruption.

Yeah, I called that a crypto-critical-section over in this thread:

https://www.postgresql.org/message-id/flat/ZYw8gVOMF9gfp6i5%40pryzbyj2023

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2025-03-19 23:59:28 Re: [PoC] Federated Authn/z with OAUTHBEARER
Previous Message Bruce Momjian 2025-03-19 23:11:28 Re: [PoC] Federated Authn/z with OAUTHBEARER