Don't create relfilenode for relations without storage
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/heap.c | modified | +12 −20 |
| src/backend/utils/cache/relcache.c | modified | +4 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/utils/rel.h | modified | +4 −5 |
| src/test/regress/expected/sanity_check.out | modified | +9 −0 |
| src/test/regress/sql/sanity_check.sql | modified | +6 −0 |
Discussion
- don't create storage when unnecessary 11 messages · 2018-12-06 → 2019-01-04