Re: Keeping creation time of objects - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: Keeping creation time of objects
Date
Msg-id 1221035786.9487.23.camel@huvostro
Whole thread Raw
In response to Re: Keeping creation time of objects  (Volkan YAZICI <yazicivo@ttmail.com>)
Responses Re: Keeping creation time of objects  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Wed, 2008-09-10 at 09:27 +0300, Volkan YAZICI wrote:
> On Tue, 9 Sep 2008, David Fetter <david@fetter.org> writes:
> >> AFAICS, PostgreSQL is not keeping info about when a table, database,
> >> sequence, etc was created.  We cannot get that info even from OS,
> >> since CLUSTER or VACUUM FULL may change the metadata of
> >> corresponding relfilenode.
> >
> > When people aren't keeping track of their DDL, that is very strictly a
> > process problem on their end.  When people are shooting themselves in
> > the foot, it's a great disservice to market Kevlar shoes to them.
> 
> Word. In the company I'm currently working at we store database schema
> in a VCS repository with minor and major version taggings. And there is
> a current_foo_soft_version() function that returns the revision of the
> related database schema. If there is no control over the database schema
> changes in a company working scheme, the most logging-feature-rich
> PostgreSQL release will provide an insignificant benefit compared the
> mess needs to get fixed.

Timestamps should rather be considered a forensic tool.

You may have the best VCS system, but if somebody bypasses it, you may
still need to find out, when it was done.

Until we have some enforcable audit facilities for DDL in place _inside_
the database, having at least timestamps often helps.

-------------
Hannu




pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Synchronous Log Shipping Replication
Next
From: "Fujii Masao"
Date:
Subject: Re: Synchronous Log Shipping Replication