From: Scott Marlowe <scott.marlowe@gmail.com>
To: chirag.dave@gmail.com
Cc: Jagadeesh <mnjagadeesh@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: displaying enum
Date: Mon, 22 Sep 2008 10:29:42 -0600
Message-ID: <dcc563d10809220929i6ca35cd6tb874a0eeb68d93ee@mail.gmail.com> (raw)
In-Reply-To: <f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com>
References: <bd20cf2a-032b-4822-ba85-d2315ea259eb@w1g2000prk.googlegroups.com>
<f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com>
Does anyone know if there's plans afoot to add this to 8.4 psql as a
\d command? Seems it could be useful. Heck, if there was just a bit
more data in the \dT output we'd be set.
On Mon, Sep 22, 2008 at 8:53 AM, <chirag.dave@gmail.com> wrote:
> Assuming you are are running 8.3, you can do this:
>
> SELECT a.typname,b.enumlabel from pg_type a , pg_enum b where
> a.oid=b.enumtypid and a.typname='NAME_OF_ENUM';
>
> Chirag Dave
> Afilias
>
>
> On Mon, Sep 22, 2008 at 9:20 AM, Jagadeesh <mnjagadeesh@gmail.com> wrote:
>>
>> Hi admins,
>>
>> I had created enum and forgotten what were the values. Is there any
>> way to see what I created?
>>
>> Thanks
>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott.marlowe@gmail.com, chirag.dave@gmail.com, mnjagadeesh@gmail.com
Subject: Re: displaying enum
In-Reply-To: <dcc563d10809220929i6ca35cd6tb874a0eeb68d93ee@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox