Re: type list - Mailing list pgsql-novice

From Merlin Moncure
Subject Re: type list
Date
Msg-id CAHyXU0z0+4LuRLFVe=7ccagFcCnQ4VjBqcz8K-ir-7c4=3Q_6w@mail.gmail.com
Whole thread Raw
In response to type list  ("Jean-Yves F. Barbier" <12ukwn@gmail.com>)
Responses Re: type list
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 by date:

Previous
From: Mauro Ziliani
Date:
Subject: PQexecPrepared and boolean type coding,
Next
From: Jorge Perez
Date:
Subject: tune postgresql on windows