pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stef <svb@ucs.co.za>
Cc: Markus Schaber <schabi@logix-tt.com>
Cc: pgsql-ADMIN@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Postgres schema comparison.
Date: Mon, 07 Mar 2005 09:30:53 -0500
Message-ID: <22961.1110205853@sss.pgh.pa.us> (raw)
In-Reply-To: <20050307145444.459e54fe@svb.ucs.co.za>
References: <20050307113312.2200b65c@svb.ucs.co.za>
	<422C42B7.1030509@logix-tt.com>
	<20050307145444.459e54fe@svb.ucs.co.za>

Stef <svb@ucs.co.za> writes:
> Markus Schaber mentioned :
> => But maybe a pg_dump --schema-only on all the databases, and then
> => manually diffing the files may already fulfil your needs.

> I've tested something similar, that seems to work ok for me for now :
> pg_dump -s -t [TABLE] [DBNAME] | grep -v "^--" | md5sum 

> The problem I have with this, is that I have to run the command per table,

Why?

If the problem is varying order of table declarations, try 8.0's
pg_dump.

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <22961.1110205853@sss.pgh.pa.us>
Permalink:  ../22961.1110205853@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22961.1110205853@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, svb@ucs.co.za, schabi@logix-tt.com, pgsql-ADMIN@postgresql.org
  Subject: Re: [SQL] Postgres schema comparison.
  In-Reply-To: <22961.1110205853@sss.pgh.pa.us>

* 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