Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B1CB564FC22 for ; Mon, 22 Sep 2008 13:29:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 25922-01 for ; Mon, 22 Sep 2008 13:29:44 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by postgresql.org (Postfix) with ESMTP id 48FE564FC10 for ; Mon, 22 Sep 2008 13:29:44 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1446108rvf.43 for ; Mon, 22 Sep 2008 09:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=kdoyNCe870YCWFYFLXo11ChEBxEVua2EeUiAtbWomjg=; b=pgjq3btaEvzsdqOFrEPU0C5qPzO7OlAU7GFlEBkfTMnyFW8S8gdkueiI2wSD8jxTq+ bWgJFcIIUDZj68AZEAvtogVMktPDFv0G9juqClnaB1r5zt6if/G7iYmc+TN4zThM5aQg EcLe60/z+sJiG1tW296o+LgM+EmVSd+7lMbIE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lLW/SHa7tz+XBDLuY3XoGuQG6gn9H9Au33i0pQH+Yfwpv6vS1Pr1bMbZja0d94dgO+ EJlRoUhjdZAPgB1lEEwlpVOLpB+yu8PMoqy3DH0k96h6NCBKE9w6nNXBZbSw1wOs3yR2 IbcaX2Te38pqBM1B9UAtRKJin+Hbz4FzrlHuU= Received: by 10.141.76.1 with SMTP id d1mr2085313rvl.269.1222100982426; Mon, 22 Sep 2008 09:29:42 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Mon, 22 Sep 2008 09:29:42 -0700 (PDT) Message-ID: Date: Mon, 22 Sep 2008 10:29:42 -0600 From: "Scott Marlowe" To: chirag.dave@gmail.com Subject: Re: displaying enum Cc: Jagadeesh , pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/233 X-Sequence-Number: 30326 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, 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 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 > >