Re: type list
| От | Merlin Moncure |
|---|---|
| Тема | Re: type list |
| Дата | |
| Msg-id | CAHyXU0z0+4LuRLFVe=7ccagFcCnQ4VjBqcz8K-ir-7c4=3Q_6w@mail.gmail.com обсуждение исходный текст |
| Ответ на | type list ("Jean-Yves F. Barbier" <12ukwn@gmail.com>) |
| Ответы |
Re: type list
|
| Список | pgsql-novice |
On Mon, Dec 12, 2011 at 3:29 PM, Jean-Yves F. Barbier <12ukwn@gmail.com> wrote:
> Hi list,
>
> How can I list all values I gave to a type I created?
what kind of type -- an enum?
in psql, you can break down enums with \dT+
postgres=# create type foo as enum ('a', 'b', 'c');
CREATE TYPE
Time: 13.000 ms
postgres=# \dT+ foo
List of data types
Schema | Name | Internal name | Size | Elements | Description
--------+------+---------------+------+----------+-------------
public | foo | foo | 4 | a +|
| | | | b +|
| | | | c |
(1 row)
merlin
В списке pgsql-novice по дате отправления: