Re: Proposal: Store "timestamptz" of database creation on "pg_database"
Stephen Frost <sfrost@snowman.net>
From: Stephen Frost <sfrost@snowman.net>
To: Hannu Krosing <hannu@krosing.net>
Cc: Dimitri Fontaine <dimitri@2ndQuadrant.fr>, Tom Lane <tgl@sss.pgh.pa.us>, Josh Berkus <josh@agliodbs.com>, pgsql-hackers@postgresql.org
Date: 2013-01-03T13:15:51Z
Lists: pgsql-hackers
* Hannu Krosing (hannu@krosing.net) wrote: > If what you want is something close to current unix file time > semantics (ctime, mtime, atime) then why not just create a function > to look up these attributes on database directory and/or database > files ? Because, as noted before, those aren't always going to be correct. Database files can be rewritten and recreated based on certain commands (eg: CLUSTER). Perhaps there's a fork that isn't, but that almost seems like it's more painful to try and figure out than just hooking in with the CREATE command. Thanks, Stephen