Skip site navigation (1) Skip section navigation (2)

Re: displaying enum

From: chirag(dot)dave(at)gmail(dot)com
To: Jagadeesh <mnjagadeesh(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: displaying enum
Date: 2008-09-22 14:53:06
Message-ID: (view raw or whole thread)
Lists: pgsql-admin
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

On Mon, Sep 22, 2008 at 9:20 AM, Jagadeesh <mnjagadeesh(at)gmail(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:

In response to


pgsql-admin by date

Next:From: Tino SchwarzeDate: 2008-09-22 15:06:34
Subject: Re: SIGKILL and force disconnecting user sessions
Previous:From: Tom LaneDate: 2008-09-22 14:43:00
Subject: Re: Error while trying to back up database: out of memroy

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group