Inspecting a DB - psql or system tables ?

Поиск
Список
Период
Сортировка
От Andre Majorel
Тема Inspecting a DB - psql or system tables ?
Дата
Msg-id 20110527172456.GC6769@aym.net2.nerim.net
обсуждение исходный текст
Ответы Re: Inspecting a DB - psql or system tables ?
Re: Inspecting a DB - psql or system tables ?
Список pgsql-general
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.

Would you look at the system tables (pg_class et al.) or the
output of psql \d, \dt, etc ?

While parsing the output of psql is cumbersome, accessing the
system tables seems more likely to break whenever a new version
of PostgreSQL comes out.

--
André Majorel http://www.teaser.fr/~amajorel/

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

Предыдущее
От: Emi Lu
Дата:
Сообщение: 500KB PDF files for postgresql8.3, which is the most efficient way?
Следующее
От: fork
Дата:
Сообщение: Re: Inspecting a DB - psql or system tables ?