]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Ensure pg_filenode_relation(0, 0) returns NULL.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 2021 17:29:24 +0000 (13:29 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 2021 17:29:24 +0000 (13:29 -0400)
commit7681b78fba106b43d9b10d22b52ba2d5cbfc1326
tree9f728bf4ad943e885e78ac936529b1a7e163408c
parent1f280e83314f6000b89046adc786f680e18d902f
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
src/backend/utils/adt/dbsize.c