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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> \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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux