Re: selecting column comment

From: "codeWarrior" <gpatnude(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: selecting column comment
Date: 2006-05-01 21:53:17
Message-ID: e35vte$1nto$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

FWIW: From the system catalogs:

SELECT PC.relname, PD.description
FROM pg_catalog.pg_description PD, pg_catalog.pg_class PC
WHERE PD.objoid = PC.oid AND PD.objsubid = 0

"Ari Kahn" <resglowing(at)mac(dot)com> wrote in message
news:1C823FF2-FFE4-411F-B967-B9479A7A5061(at)mac(dot)com(dot)(dot)(dot)
>I have a comments on tables in my database.
>
> e.g. COMMENT ON TABLE my_schema.my_table IS 'Employee Information';
>
> I know you can get comments using \d+
>
> Is there a way to select comments?
>
> Reason: I do a lot of perl interfaces. I find escape commands do not work
> using DBI.
>
> Thanks,
> Ari
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message brsaweda 2006-05-01 22:15:28 Re: For vim users: Syntax highlighting for PostgreSQL
Previous Message John D. Burger 2006-05-01 21:23:41 Re: How would I write this query...