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
  • 1,030
  • 8
  • 21

1 Answers1

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

You can find answer here.

Alan Sereb
  • 2,358
  • 2
  • 17
  • 31