Re: Weird...but correct?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weird...but correct?
Дата
Msg-id 27395.1090853216@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Weird...but correct?  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> It's bizarre how you can comment on columns in composite types!
> CREATE TYPE test (a int4, b int4);
> COMMENT ON COLUMN test.a IS 'A column';

And not only that, but:

regression=# \d+ testComposite type "public.test"Column |  Type   | Description
--------+---------+-------------a      | integer | A columnb      | integer |

> Seems harmless, but should we allow it?

Why not?

> Shall I fix pg_dump?

Yes please, if it doesn't seem outlandishly hard.  (From memory it might
just be adding a subroutine call to dumpType...)
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: storage engine , mysql syntax CREATE TABLE t (i INT)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Triggers on TRUNCATE?