pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chirag.dave@gmail.com
To: Jagadeesh <mnjagadeesh@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: displaying enum
Date: Mon, 22 Sep 2008 10:53:06 -0400
Message-ID: <f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com> (raw)
In-Reply-To: <bd20cf2a-032b-4822-ba85-d2315ea259eb@w1g2000prk.googlegroups.com>
References: <bd20cf2a-032b-4822-ba85-d2315ea259eb@w1g2000prk.googlegroups.com>

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
>

view thread (6+ messages)  latest in thread

Message-ID: <f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com>
Permalink:  ../f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com/
Also on:    postgresql.org/message-id/f1d4f3170809220753l990ccc4x3988d13754757b77@mail.gmail.com

 · 

reply

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: chirag.dave@gmail.com, mnjagadeesh@gmail.com
  Subject: Re: displaying enum
  In-Reply-To: <f1d4f3170809220753l990ccc4x3988d13754757b77@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