]> granicus.if.org Git - postgresql/commit
Change the relkind for partitioned tables from 'P' to 'p'.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 18:15:47 +0000 (13:15 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 10 Mar 2017 18:15:47 +0000 (13:15 -0500)
commit8b358b42f8eb6156a82ac9a41fc4e8335c8dc37a
tree8e411be8e421d41fc00467a8c4b8c3cd89e0c7b2
parenta83e4b4f31c7afa5f7360086ebb1916cc99a4dbe
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
doc/src/sgml/catalogs.sgml
src/backend/catalog/information_schema.sql
src/backend/catalog/system_views.sql
src/include/catalog/catversion.h
src/include/catalog/pg_class.h
src/test/regress/expected/create_table.out
src/test/regress/expected/rules.out
src/test/regress/expected/sanity_check.out
src/test/regress/expected/type_sanity.out
src/test/regress/sql/sanity_check.sql
src/test/regress/sql/type_sanity.sql