Change the relkind for partitioned tables from 'P' to 'p'.
Tom Lane <tgl@sss.pgh.pa.us>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/catalogs.sgml | modified | +8 −5 |
| src/backend/catalog/information_schema.sql | modified | +23 −21 |
| src/backend/catalog/system_views.sql | modified | +2 −2 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_class.h | modified | +6 −5 |
| src/test/regress/expected/create_table.out | modified | +1 −1 |
| src/test/regress/expected/rules.out | modified | +2 −2 |
| src/test/regress/expected/sanity_check.out | modified | +1 −1 |
| src/test/regress/expected/type_sanity.out | modified | +1 −1 |
| src/test/regress/sql/sanity_check.sql | modified | +1 −1 |
| src/test/regress/sql/type_sanity.sql | modified | +1 −1 |
Documentation touched
Discussion
- Bizarre choice of case for RELKIND_PARTITIONED_TABLE 12 messages · 2017-03-07 → 2017-03-11