pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't create relfilenode for relations without storage
Date: Fri, 04 Jan 2019 18:04:18 +0000
Message-ID: <E1gfTpS-0000cr-2M@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1gfTpS-0000cr-2M@gemulon.postgresql.org>
Permalink:  ../E1gfTpS-0000cr-2M@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gfTpS-0000cr-2M@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Don't create relfilenode for relations without storage
  In-Reply-To: <E1gfTpS-0000cr-2M@gemulon.postgresql.org>
  References: <E1gfTpS-0000cr-2M@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