Ian Lipsky <postgres(at)merk(dot)caltech(dot)edu> writes:
> is there a way to tell when a database was created?
Nope, PG doesn't record that anywhere.
You could get an upper bound by looking for the oldest file mod time in
the database's files. This isn't completely reliable, but unless you're
in the habit of changing system catalogs as obscure as pg_am, it'd
probably be good enough.
regards, tom lane
In response to
pgsql-admin by date
|Next:||From: Paul Gimpelj||Date: 2004-05-31 04:44:06|
|Subject: [admin]@postgresql.org pg_database contents ... what happens|
|Previous:||From: Tom Lane||Date: 2004-05-31 04:30:58|
|Subject: Re: Backend crash |