Re: db schema diff

From: Igor Shevchenko <igor(at)carcass(dot)ath(dot)cx>
To: <btober(at)computer(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: db schema diff
Date: 2004-04-12 20:21:29
Message-ID: 200404122321.30167.igor@carcass.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday 12 April 2004 22:38, you wrote:
> ${PG_DUMP} -s -p 5432 mydb|${GREP} -v '^--'|${CAT} -s >5432.sql
> ${PG_DUMP} -s -p 5433 mydb|${GREP} -v '^--'|${CAT} -s >5433.sql
> ${PG_DUMP} -s -p 5434 mydb|${GREP} -v '^--'|${CAT} -s >5434.sql
>
> ${DIFF} 5432.sql 5433.sql > 5432-5433.diff
> ${DIFF} 5433.sql 5434.sql > 5433-5434.diff

I used to do exactly this but the pg_dump order is different on my two
servers, and this generates lots of false diffs.

Here's a link to my really simple script which does what I want:
http://carcass.ath.cx/diffpg.pl

It doesn't honor schema and object ownership.

--
Best regards,
Igor Shevchenko

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-04-12 21:57:12 Re: db schema diff
Previous Message btober 2004-04-12 19:38:07 Re: db schema diff