Re: forgot the structure of a composite type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: forgot the structure of a composite type
Дата
Msg-id 10198.1238381101@sss.pgh.pa.us
обсуждение исходный текст
Ответ на forgot the structure of a composite type  (Manal Helal <manalorama@gmail.com>)
Список pgsql-admin
Manal Helal <manalorama@gmail.com> writes:
> I defined a composite type and forgot its structure, data fields names
> and data types. Is there any command that can define that for me?

psql's \d command, for one.

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


            regards, tom lane

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

Предыдущее
От: Manal Helal
Дата:
Сообщение: forgot the structure of a composite type
Следующее
От: fatih ozturk
Дата:
Сообщение: Partitionin with check functions