Re: List of postgreSQL databases

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: List of postgreSQL databases
Дата
Msg-id 14921.1273517574@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: List of postgreSQL databases  (Andreas 'ads' Scherbaum <adsmail@wars-nicht.de>)
Список pgsql-admin
"Andreas 'ads' Scherbaum" <adsmail@wars-nicht.de> writes:
>> SELECT datname FROM pg_database;

> Is this guaranteed to stay forever?

It seems reasonably unlikely that we'd change it.  Even if we did,
we have in the past provided compatibility views (cf pg_user,
pg_shadow) when removing a catalog --- I would think the same would
happen for pg_database if we ever removed it.

> Isn't there a way to make the list of databases available in
> information_schema and change this view whenever the underlaying
> structure might change?

The point of information_schema is that it's standardized.  There
is no view in the SQL standard that corresponds to a list of databases.
If you think there ought to be, take it up with the SQL committee.

            regards, tom lane

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

Предыдущее
От: Andreas 'ads' Scherbaum
Дата:
Сообщение: Re: List of postgreSQL databases
Следующее
От: Evan Rempel
Дата:
Сообщение: PgPool-II - does it do re-connect?