Re: Have \d show child tables that inherit from the specified parent
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Have \d show child tables that inherit from the specified parent |
| Дата | |
| Msg-id | 26800.1246995352@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Have \d show child tables that inherit from the specified parent (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> On Tuesday 07 July 2009 19:35:54 Tom Lane wrote:
>> I looked at this patch. I'm a bit disturbed by the
>> ORDER BY c.oid::pg_catalog.regclass
>> business. I doubt that does what the author thinks, and I'm not sure
>> what we really want anyway. If we want the child table names sorted
>> alphabetically then the regclass value needs to be further cast to text,
>> ie
>> ORDER BY c.oid::pg_catalog.regclass::pg_catalog.text
> Fixed; it was clearly meant to be by name.
Testing shows that we still have a problem: the query now fails outright
with pre-8.3 servers:
regression=# \d+ a
ERROR: cannot cast type regclass to text
Perhaps it would be sufficient to ORDER BY c.relname.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера