pgsql: Don't create relfilenode for relations without storage - Mailing list pgsql-committers

From Alvaro Herrera
Subject pgsql: Don't create relfilenode for relations without storage
Date
Msg-id E1gfTpS-0000cr-2M@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't create relfilenode for relations without storage

Some relation kinds had relfilenode set to some non-zero value, but
apparently the actual files did not really exist because creation was
prevented elsewhere.  Get rid of the phony pg_class.relfilenode values.

Catversion bumped, but only because the sanity_test check will fail if
run in a system initdb'd with the previous version.

Reviewed-by: Kyotaro HORIGUCHI, Michael Paquier
Discussion: https://postgr.es/m/20181206215552.fm2ypuxq6nhpwjuc@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/807ae415c54628ade937cb209f0fc9913e6b0cf5

Modified Files
--------------
src/backend/catalog/heap.c                 | 32 +++++++++++-------------------
src/backend/utils/cache/relcache.c         |  4 ++++
src/include/catalog/catversion.h           |  2 +-
src/include/utils/rel.h                    |  9 ++++-----
src/test/regress/expected/sanity_check.out |  9 +++++++++
src/test/regress/sql/sanity_check.sql      |  6 ++++++
6 files changed, 36 insertions(+), 26 deletions(-)


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: Rename macro to RELKIND_HAS_STORAGE
Next
From: Tom Lane
Date:
Subject: pgsql: Fix program build rule in src/bin/scripts/Makefile.