Re: [HACKERS] Bizarre choice of case for RELKIND_PARTITIONED_TABLE
В списке pgsql-hackers по дате отправления:
| От | Amit Langote |
|---|---|
| Тема | Re: [HACKERS] Bizarre choice of case for RELKIND_PARTITIONED_TABLE |
| Дата | |
| Msg-id | bbeea30b-1eca-c75d-b37d-77e8664e48ba@lab.ntt.co.jp обсуждение исходный текст |
| Ответ на | [HACKERS] Bizarre choice of case for RELKIND_PARTITIONED_TABLE (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On 2017/03/08 2:55, Tom Lane wrote: > Is there a good reason why RELKIND_PARTITIONED_TABLE is 'P' not 'p'? > It looks rather out of place considering that seven of the eight > pre-existing relkind codes are lower case. (And no, I don't especially > approve of RELKIND_SEQUENCE being 'S' either, but it's far too late to > change that.) Also, in typical low-res monospaced fonts, there's nearly > no difference except vertical alignment between P and p, meaning that in > something like > > regression=# select distinct relkind from pg_class; > relkind > --------- > r > t > P > v > m > i > S > c > (8 rows) > > you have to look rather closely even to notice that what you're seeing > isn't in the case you might expect. > > I think we should change this while we still can. I remember that one of the earliest versions of the patch I submitted had two new relkinds: 'P' for partitioned tables and 'p' for leaf partitions. The latter was dropped subsequently and I never thought of using 'p' instead of 'P' for partitioned tables. Attached patch that implements this change. Thanks, Amit -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера