Re: [DOCS] Remove name as valid parameter for catalog functions
В списке pgadmin-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [DOCS] Remove name as valid parameter for catalog functions |
| Дата | |
| Msg-id | 23947.1299511140@sss.pgh.pa.us обсуждение |
| Ответ на | Remove name as valid parameter for catalog functions (Thom Brown <thom@linux.com>) |
| Ответы |
Re: [DOCS] Remove name as valid parameter for catalog functions
|
| Список | pgadmin-hackers |
Thom Brown <thom@linux.com> writes:
> Patch attached which corrects the docs where catalog functions no
> longer accept values of type name. Originally a note submitted by
> someone on the docs, but this affects more than just the one they
> mentioned.
The reason those are phrased as "OID or name" is that what they take is
regclass, which means that things like pg_total_relation_size('table_name')
do in fact work. I think the proposed wording would leave people with
the idea that they had to supply a numeric OID, which is a PITA and not
by any means the expected usage. I agree that maybe the original
wording could use some improvement, but I don't think that just removing
"or name" is an improvement.
regards, tom lane
В списке pgadmin-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера