Re: selecting column comment

Поиск
Список
Период
Сортировка
От codeWarrior
Тема Re: selecting column comment
Дата
Msg-id e2qn93$24qq$1@news.hub.org
обсуждение исходный текст
Ответ на selecting column comment  (Ari Kahn <resglowing@mac.com>)
Список pgsql-general
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@mac.com> wrote in message
news:1C823FF2-FFE4-411F-B967-B9479A7A5061@mac.com...
>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
>



В списке pgsql-general по дате отправления:

Предыдущее
От: Kenneth Downs
Дата:
Сообщение: Vacuum suggesting doubling of max_fsm_pages
Следующее
От: Aly Dharshi
Дата:
Сообщение: Re: Installing PostgreSQL on Win 2003 R2 64-bit