Re: How to view user defined TYPE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to view user defined TYPE
Дата
Msg-id 10102.1224696934@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to view user defined TYPE  (Goboxe <hadzramin.ar@gmail.com>)
Список pgsql-general
Goboxe <hadzramin.ar@gmail.com> writes:
>> Let say I created a new type:
>> CREATE TYPE compfoo AS (f1 int, f2 text);
>> How can I view its definition?

In psql, \d works:

regression=# CREATE TYPE compfoo AS (f1 int, f2 text);
CREATE TYPE
regression=# \d compfoo
Composite type "public.compfoo"
 Column |  Type
--------+---------
 f1     | integer
 f2     | text


            regards, tom lane

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

Предыдущее
От: "Merlin Moncure"
Дата:
Сообщение: Re: text array accumulate to multidimensional text array
Следующее
От: "George Pavlov"
Дата:
Сообщение: Re: How to get schema name which violates fk constraint