pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tim Larson <tim@keow.org>
To: pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Schema comparisons
Date: Sun, 29 Feb 2004 03:22:44 +0000
Message-ID: <20040229032244.GE24612@keow.org> (raw)
In-Reply-To: <20040229022348.GL8646@posixnap.net>
References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com>
<25377.1077942505@sss.pgh.pa.us>
<4F7D4521-69BC-11D8-ACD3-000A9579AF50@indeq.com>
<27965.1077982780@sss.pgh.pa.us>
<20040229022348.GL8646@posixnap.net>
On Sat, Feb 28, 2004 at 09:23:48PM -0500, Alex J. Avriette wrote:
> On Sat, Feb 28, 2004 at 10:39:40AM -0500, Tom Lane wrote:
>
> > >> Have you tried diffing pg_dump output? It's not the greatest tool but
> > >> it's helpful.
> >
> > > Yes, I did. It was quite cumbersome. Especially since the OIDs and
> > > TOC entry numbers didn't matchup; and, since those didn't always match,
> > > the order of objects wasn't quite the same either. So, diff was
> > > throwing a lot of false positives at me.
> >
> > Yeah. CVS-tip pg_dump doesn't show OIDs by default, to make it easier
> > to use for purposes like this. The ordering issue is the bigger problem
> > though. I presume that the object creation history is different in the
> > two databases and so pg_dump's habit of sorting by OID isn't helpful.
>
> I recently had to figure out what was different between the "live" schema
> and the schema in cvs at work. This was a really painful process, and it
> occurred to me that it wouldn't be terribly hard to write a perl program
> to do it (I wound up using vim and diff). Is there interest in such a tool?
> I could probably have one written within a day or two.
I sometimes supplement vim/diff with xxdiff, meld, and winmerge.
Hope this helps someone,
--Tim Larson
view thread (12+ messages) latest in thread
Message-ID: <20040229032244.GE24612@keow.org> Permalink: ../20040229032244.GE24612@keow.org/ Also on: postgresql.org/message-id/20040229032244.GE24612@keow.org ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: tim@keow.org, pgsql-hackers@postgresql.org Subject: Re: [ADMIN] Schema comparisons In-Reply-To: <20040229032244.GE24612@keow.org> References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com> <25377.1077942505@sss.pgh.pa.us> <4F7D4521-69BC-11D8-ACD3-000A9579AF50@indeq.com> <27965.1077982780@sss.pgh.pa.us> <20040229022348.GL8646@posixnap.net> <20040229032244.GE24612@keow.org> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox