Skip site navigation (1) Skip section navigation (2)

Re: Comparing databases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sugrue, Sean" <Sean(dot)Sugrue(at)analog(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Comparing databases
Date: 2006-01-11 20:34:39
Message-ID: 27885.1137011679@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Sugrue, Sean" <Sean(dot)Sugrue(at)analog(dot)com> writes:
> Does anyone know how to structurally compare a list of tables
> between two different databases without going
> through them one by one?

You might try "pg_dump -s" on both databases and diff the output.
Not a perfect tool but it will serve for minor differences.

			regards, tom lane

In response to

Responses

pgsql-novice by date

Next:From: Steve TucknottDate: 2006-01-11 20:55:08
Subject: Open Office2
Previous:From: Sugrue, SeanDate: 2006-01-11 20:30:05
Subject: Comparing databases

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group