Re: how to check the creation date of a postgres database?

Поиск
Список
Период
Сортировка
От Chris Mair
Тема Re: how to check the creation date of a postgres database?
Дата
Msg-id 1158768470.18229.143.camel@ultra.home.lan
обсуждение исходный текст
Ответ на how to check the creation date of a postgres database?  (Jessica Richard <rjessil@yahoo.com>)
Ответы Re: how to check the creation date of a postgres database?  (Jessica Richard <rjessil@yahoo.com>)
Список pgsql-admin
> \l and  \l+ show only the database name, owner and description.
> select * from pg_database does not have date info, either.
>
> I would like to know when each of my databases were created.

The only solution I can think of is querying
select oid, datname from pg_database;
and then look up the timestamps of the corresponding directories
in $PGDATA/base.

Bye, Chris.


--

Chris Mair
http://www.1006.org


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

Предыдущее
От: Jessica Richard
Дата:
Сообщение: how to check the creation date of a postgres database?
Следующее
От: "Tomeh, Husam"
Дата:
Сообщение: Re: how to check the creation date of a postgres