Re: USE_BARRIER_SMGRRELEASE on Linux?

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-02-16T04:59:43Z
Lists: pgsql-hackers
Hi,

On 2022-02-16 15:34:08 +1300, Thomas Munro wrote:
> So it's not getting unlinked until the *next* checkpoint cycle.  I
> don't know why.

It might be helpful to know what the relfilenode maps to, so we know the
operations done to it. Perhaps logging in heap_create() and
RelationSetNewRelfilenode() would do the trick?

Greetings,

Andres Freund



Commits

  1. Fix race between DROP TABLESPACE and checkpointing.