Re: Proposal: Store "timestamptz" of database creation on "pg_database" - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: Proposal: Store "timestamptz" of database creation on "pg_database"
Date
Msg-id 20130103131551.GA16126@tamriel.snowman.net
Whole thread Raw
In response to Re: Proposal: Store "timestamptz" of database creation on "pg_database"  (Hannu Krosing <hannu@krosing.net>)
List 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

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Proposal: Store "timestamptz" of database creation on "pg_database"
Next
From: Stephen Frost
Date:
Subject: Re: Re: Proposal: Store "timestamptz" of database creation on "pg_database"