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

From Kevin Grittner
Subject Re: Re: Proposal: Store "timestamptz" of database creation on "pg_database"
Date
Msg-id 20130103215103.4840@gmx.com
Whole thread Raw
Responses Re: Re: Proposal: Store "timestamptz" of database creation on "pg_database"
List pgsql-hackers
Robert Haas wrote:
> Christopher Browne <cbbrowne@gmail.com> wrote:

>> these timestamps Should Not be captured or carried forward by
>> pg_dump.

>> If we put a creation time into pg_database or pg_class, then
>> streaming replication will, as a "physical" replication
>> mechanism, carry the timestamp forward into replicas

>> And in contrast, I'd expect Andres Freund's logical replication
>> infrastructure *NOT* to carry these dates over, but rather to
>> establish fresh new creation dates on a replica. (And from a
>> forensic perspective, that's a perfectly fine thing.)
> 
> I agree all around.

+1

My analogy would be to xmin in tuples. Anything that preserves that
should preserve table creation timestamp. If the tuples' xmin
values in the table receiving the data differ, the creation
timestamp should, too.

In my experience, this would have been valuable forensic
information many times. Preserving xmin rather than aggressively
freezing never has been or would have been useful to me.

-Kevin



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Reminder: CFP for pgCon closes January 19th
Next
From: Andrew Dunstan
Date:
Subject: Re: Re: Proposal: Store "timestamptz" of database creation on "pg_database"