pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Lubratt <mark.lubratt@indeq.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [ADMIN] Schema comparisons
Date: Sat, 28 Feb 2004 17:59:50 +0000
Message-ID: <200402281759.50389.dev@archonet.com> (raw)
In-Reply-To: <27965.1077982780@sss.pgh.pa.us>
References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com>
	<4F7D4521-69BC-11D8-ACD3-000A9579AF50@indeq.com>
	<27965.1077982780@sss.pgh.pa.us>

On Saturday 28 February 2004 15:39, Tom Lane wrote:
> Mark Lubratt <mark.lubratt@indeq.com> writes:
> > On Feb 27, 2004, at 10:28 PM, Tom Lane wrote:
> >> Mark Lubratt <mark.lubratt@indeq.com> writes:
> >>> I've been trying to be careful, but I've gotten out of synch with
> >>> whether or not I've applied the changes I've made to the development
> >>> system to the production system.  Is there a utility that will compare
> >>> the tables, functions, trigger, views, etc. between two systems and
> >>> flag the schema elements that aren't in synch between the two?
> >>
> >> Have you tried diffing pg_dump output?  It's not the greatest tool but
> >> it's helpful.

> Comments?  Anyone see a reason not to do this?

It would help me out too - I have similar problems to Mark with keeping 
various copies in sync.

I've been looking at storing $REVISION$ in comments for each object, so my 
install scripts can halt if there is a problem. Not wanting to use my only 
comment slot for this I was thinking about an extension to the COMMENT ON 
statement:
COMMENT ON TABLE foo IS 'This is where I stroe my foos.';
COMMENT ON TABLE foo SECTION 'default' IS 'I meant store my foos.';
COMMENT ON TABLE foo SECTION 'revision' IS '1.19';
COMMENT ON TABLE foo SECTION 'bar' IS 'baz';



view thread (12+ messages)  latest in thread

Message-ID: <200402281759.50389.dev@archonet.com>
Permalink:  ../200402281759.50389.dev@archonet.com/
Also on:    postgresql.org/message-id/200402281759.50389.dev@archonet.com

 · 

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: dev@archonet.com, tgl@sss.pgh.pa.us, mark.lubratt@indeq.com, pgsql-hackers@postgresql.org
  Subject: Re: [ADMIN] Schema comparisons
  In-Reply-To: <200402281759.50389.dev@archonet.com>
  References: <C4BBB0BE-699E-11D8-ACD3-000A9579AF50@indeq.com> <4F7D4521-69BC-11D8-ACD3-000A9579AF50@indeq.com> <27965.1077982780@sss.pgh.pa.us> <200402281759.50389.dev@archonet.com>

* 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