Don't create relfilenode for relations without storage
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 4 Jan 2019 17:51:17 +0000 (14:51 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 4 Jan 2019 17:51:17 +0000 (14:51 -0300)
commit807ae415c54628ade937cb209f0fc9913e6b0cf5
treedcf79661ba99a6aded5baa8b87751da51bdda125
parentdf5be63763f82c5cd1b7f8af702b2e20f7d282aa
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
src/backend/catalog/heap.c
src/backend/utils/cache/relcache.c
src/include/catalog/catversion.h
src/include/utils/rel.h
src/test/regress/expected/sanity_check.out
src/test/regress/sql/sanity_check.sql