1

I have a PostgreSQL server with several databases on it.

Is it possible to determine when each database on a database server was created?

Brett Rowberry
  • 936
  • 7
  • 19

1 Answers1

1
SELECT (pg_stat_file('base/'||oid ||'/PG_VERSION')).modification, datname FROM pg_database;

You can find answer here.

Alan Sereb
  • 2,012
  • 1
  • 15
  • 30