Re: proposal: add columns created and altered to pg_proc and pg_class - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: proposal: add columns created and altered to pg_proc and pg_class
Date
Msg-id 162867790904132107h60defa9dq183c53798e647a08@mail.gmail.com
Whole thread Raw
In response to Re: proposal: add columns created and altered to pg_proc and pg_class  (Josh Berkus <josh@agliodbs.com>)
Responses Re: proposal: add columns created and altered to pg_proc and pg_class  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
2009/4/14 Josh Berkus <josh@agliodbs.com>:
>
>>> - what if I need to know about operators, operator classes, schemas, etc
>>>  etc
>>
>> Fine, let's log this info for those too (or else decide they're too
>> obscure and don't - pg_class and pg_proc are certainly the most
>> interesting cases).
>
> I would suggest putting this info in a separate table, pg_change.  It would
> have oid, catalog, user_changed, changed_on.  That way we could simply keep
> the data for all objects which have an OID.
>
> This would also supposedly allow us to track drops if we wanted.
>
> We'd have to check on overhead of this, though, and maybe make it a GUC to
> track it.
>
> This would also be tremendously useful to suppliment replication systems.
>

I though about it too. But I am not sure, if this isn't too
complicated solution for simple task. If I thing little bit more -
main important is timestamp of last change.

regards
Pavel Stehule

> --
> Josh Berkus
> PostgreSQL Experts Inc.
> www.pgexperts.com
>


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: proposal: add columns created and altered to pg_proc and pg_class
Next
From: Andrew Gierth
Date:
Subject: Re: Unicode support