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