Re: Inspecting a DB - psql or system tables ?

Поиск
Список
Период
Сортировка
От fork
Тема Re: Inspecting a DB - psql or system tables ?
Дата
Msg-id loom.20110527T195331-496@post.gmane.org
обсуждение исходный текст
Ответ на Inspecting a DB - psql or system tables ?  (Andre Majorel <aym-2lqsgp@teaser.fr>)
Список pgsql-general
Andre Majorel <aym-2lqsgp <at> teaser.fr> writes:

>
> Suppose you want to write a program that connects to a
> PostgreSQL database and lists its tables and views, the type of
> their columns and their relationships (REFERENCES) for automatic
> joins.

I personally would try to hit the "informat_schema", which is a bunch of views
on system activity that follows a standard. I am not sure if what you want is in
there, like locks or other stuff, but for table names etc it works well.

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

Предыдущее
От: Andre Majorel
Дата:
Сообщение: Inspecting a DB - psql or system tables ?
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Inspecting a DB - psql or system tables ?