Re: Bizarre choice of case for RELKIND_PARTITIONED_TABLE
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-03-07T23:03:38Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > On Tue, Mar 7, 2017 at 12:55 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Is there a good reason why RELKIND_PARTITIONED_TABLE is 'P' not 'p'? > I can't muster a lot of outrage about this one way or another. One > possible advantage of 'P' is that there are fewer places where 'P' is > mentioned in the source code than 'p'. Hm, one would hope that the vast majority of code references are neither of those, but rather "RELKIND_PARTITIONED_TABLE". information_schema.sql and system_views.sql will need to be gone over carefully, certainly, but we shouldn't be hard-coding this anywhere that there's a reasonable alternative. regards, tom lane
Commits
-
Change the relkind for partitioned tables from 'P' to 'p'.
- 8b358b42f8eb 10.0 landed
-
Fix hard-coded relkind constants in assorted other files.
- 9c2635e26f6f 10.0 landed
-
Fix hard-coded relkind constants in assorted src/bin files.
- fcd778eb703c 10.0 landed
-
Fix hard-coded relkind constants in psql/describe.c.
- 395bfaae8e78 10.0 landed
-
Fix hard-coded relkind constants in pg_dump.c.
- fe797b4a6a69 10.0 landed
-
Restructure LOCKTAG as per discussions of a couple months ago.
- 3a694bb0a16f 8.1.0 cited