Re: Version Control? - Mailing list pgsql-general

From Peter Fein
Subject Re: Version Control?
Date
Msg-id 42AB11C6.4080202@pobox.com
Whole thread Raw
In response to Re: Version Control?  (Peter Fein <pfein@pobox.com>)
Responses Re: Version Control?  ("Jim C. Nasby" <decibel@decibel.org>)
List pgsql-general
Peter Fein wrote:
> As an uninformed, off-the-wall idea, could one compare snapshots of the
> system tables to generate these diffs? I know next-to-nothing about
> these, but it seems like they'd contain the info you'd need.

Here's another nutty idea: Could one create a (carefully designed) audit
table on the system tables themselves?  You'd need to exclude irrelevant
stuff (stats or whatever) & I'd have no idea about performance impact.

Dumping & transforming the audit would basically give you a script that
runs through all the actions done to a schema.  I'm not 100% how to use
this for an update script though.  I'm not sure a straight diff of
actions will work - it seems like the results may be order dependent in
some cases and you might need to infer undos. Anyway, it's interesting...

--
Peter Fein                 pfein@pobox.com                 773-575-0694

Basically, if you're not a utopianist, you're a schmuck. -J. Feldman

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: tsearch2 and a database with texts in different languages?
Next
From: Tom Lane
Date:
Subject: Re: CPU-intensive autovacuuming