Re: determining when a database was created

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: determining when a database was created
Дата
Msg-id 13893.1086054410@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: determining when a database was created  ("Ian Lipsky" <postgres@merk.caltech.edu>)
Список pgsql-admin
"Ian Lipsky" <postgres@merk.caltech.edu> writes:
> How can i determine which directory contains the database files? there
> are a few databases.

The database directory names correspond to the OID column of
pg_database.  So:

    SELECT datname, oid from pg_database;

(BTW, this is likely to change in 7.5 if tablespaces get done.)

See also the contrib/oid2name tool.

            regards, tom lane

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

Предыдущее
От: "Ian Lipsky"
Дата:
Сообщение: Re: determining when a database was created
Следующее
От: "Somasekhar Bangalore"
Дата:
Сообщение: Re: determining when a database was created