Is it possible to query the database for the values of an enumerated type in 8.3.3?

Поиск
Список
Период
Сортировка
От Nagle, Gail A \(US SSA\)
Тема Is it possible to query the database for the values of an enumerated type in 8.3.3?
Дата
Msg-id 7b4e7t$bae2g@dmzms99902.na.baesystems.com
обсуждение исходный текст
Ответы Re: Is it possible to query the database for the values of an enumerated type in 8.3.3?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice

I have successfully created a user defined enumerated type using the CREATE TYPE some_type_name AS ENUM command using Postgresql 8.3.3.

 

Is it possible to query the database (e.g. from psql or from the pgAdmin III Query tool) for the enumerated values in the newly added user defined type?

 

I did not find any direct documentation on this either in the manual or on the web, but I may not know the correct search term(s) to use. Oracle has a DESCRIBE command that does this type of thing for DB objects. Perhaps the values need to be found indirectly by view some system table?

 

Thank you!

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

Предыдущее
От: "Ridvan Lakas ng Bayan S. Baluyos"
Дата:
Сообщение: See description of a function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Is it possible to query the database for the values of an enumerated type in 8.3.3?