From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Change the relkind for partitioned tables from 'P' to 'p'.
Date: Fri, 10 Mar 2017 18:15:54 +0000
Message-ID: <E1cmP50-0001Tl-28@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Change the relkind for partitioned tables from 'P' to 'p'.
Seven of the eight other relkind codes are lower-case, so it wasn't
consistent for this one to be upper-case. Fix it while we still can.
Historical notes: the reason for the lone exception, i.e. sequences being
'S', is that 's' was once used for "special" relations. Also, at one time
the partitioned-tables patch used both 'P' and 'p', but that got changed,
leaving only a surprising choice behind.
This also fixes a couple little bits of technical debt, such as
type_sanity.sql not knowing that 'm' is a legal value for relkind.
Discussion: https://postgr.es/m/27899.1488909319@sss.pgh.pa.us
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/8b358b42f8eb6156a82ac9a41fc4e8335c8dc37a
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 13 +++++----
src/backend/catalog/information_schema.sql | 44 ++++++++++++++++--------------
src/backend/catalog/system_views.sql | 4 +--
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_class.h | 11 ++++----
src/test/regress/expected/create_table.out | 2 +-
src/test/regress/expected/rules.out | 4 +--
src/test/regress/expected/sanity_check.out | 2 +-
src/test/regress/expected/type_sanity.out | 2 +-
src/test/regress/sql/sanity_check.sql | 2 +-
src/test/regress/sql/type_sanity.sql | 2 +-
11 files changed, 47 insertions(+), 41 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Change the relkind for partitioned tables from 'P' to 'p'.
In-Reply-To: <E1cmP50-0001Tl-28@gemulon.postgresql.org>
References: <E1cmP50-0001Tl-28@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