pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgrowlocks: Reject unlogged and temp tables during recovery
Date: Fri, 06 Nov 2026 05:01:54 +0000
Message-ID: <E1xPC5L-00000000Pws-14je@gemulon.postgresql.org> (raw)

pgrowlocks: Reject unlogged and temp tables during recovery

Unlogged and temporary tables have no data on a standby, and attempting
to use pgrowlocks() in this case led to this failure:

ERROR:  could not open file "base/MMM/NNN": No such file or directory

These cases are now checked, failing with a proper failure.  Temporary
tables from other sessions cannot be accessed, as the streaming read
APIs prevent that already.

Author: Jim Jones <jim.jones@uni-muenster.de>
Reported-by: Zsolt Parragi <zsolt.parragi@percona.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Reviewed-by: Surya Poondla <suryapoondla4@gmail.com>
Discussion: https://postgr.es/m/82ba0876-6127-4770-b900-aa1bd52abfed@uni-muenster.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3c5a4dcaaa8d5bef429bd8143d1a6e9f92fa0b74

Modified Files
--------------
contrib/pgrowlocks/pgrowlocks.c | 6 ++++++
1 file changed, 6 insertions(+)



Message-ID: <E1xPC5L-00000000Pws-14je@gemulon.postgresql.org>
Permalink:  ../E1xPC5L-00000000Pws-14je@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xPC5L-00000000Pws-14je@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: pgrowlocks: Reject unlogged and temp tables during recovery
  In-Reply-To: <E1xPC5L-00000000Pws-14je@gemulon.postgresql.org>
  References: <E1xPC5L-00000000Pws-14je@gemulon.postgresql.org>

* 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