pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure pg_filenode_relation(0, 0) returns NULL.
Date: Sat, 12 Jun 2021 17:29:45 +0000
Message-ID: <E1ls7S5-000879-6P@gemulon.postgresql.org> (raw)

Ensure pg_filenode_relation(0, 0) returns NULL.

Previously, a zero value for the relfilenode resulted in
a confusing error message about "unexpected duplicate".
This function returns NULL for other invalid relfilenode
values, so zero should be treated likewise.

It's been like this all along, so back-patch to all supported
branches.

Justin Pryzby

Discussion: https://postgr.es/m/20210612023324.GT16435@telsasoft.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c1ffbbcbca93b3544c0b57b7ab063497794cb8ff

Modified Files
--------------
src/backend/utils/adt/dbsize.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)



view thread (6+ messages)

Message-ID: <E1ls7S5-000879-6P@gemulon.postgresql.org>
Permalink:  ../E1ls7S5-000879-6P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ls7S5-000879-6P@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Ensure pg_filenode_relation(0, 0) returns NULL.
  In-Reply-To: <E1ls7S5-000879-6P@gemulon.postgresql.org>
  References: <E1ls7S5-000879-6P@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