Re: [HACKERS] [ADMIN] Schema comparisons

2004-03-03 Thread Richard Huxton
On Wednesday 03 March 2004 03:44, Christopher Kings-Lynne wrote: > > 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 >

Re: [HACKERS] [ADMIN] Schema comparisons

2004-03-02 Thread Christopher Kings-Lynne
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 c

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-29 Thread Robert Treat
On Saturday 28 February 2004 21:23, 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

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-29 Thread Richard Huxton
On Sunday 29 February 2004 02:01, Tom Lane wrote: > Richard Huxton <[EMAIL PROTECTED]> writes: > > 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

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Tim Larson
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

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Alex J. Avriette
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

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Tom Lane
Richard Huxton <[EMAIL PROTECTED]> writes: > 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

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Bort, Paul
Ordering the pg_dump output by name within classes instead of OID sounds good to me, too. Also, something that might be easier for comparing schemata between databases: rather than dumping the database, have you tried using PostgreSQL Autodoc (http://www.rbt.ca/autodoc/) which just outputs the sc

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Michael Brusser
arg to produce the output most suitable for this utility. Mike. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Tom Lane > Sent: Saturday, February 28, 2004 10:40 AM > To: Mark Lubratt > Cc: [EMAIL PROTECTED] > Subject: Re: [HA

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Richard Huxton
On Saturday 28 February 2004 15:39, Tom Lane wrote: > Mark Lubratt <[EMAIL PROTECTED]> writes: > > On Feb 27, 2004, at 10:28 PM, Tom Lane wrote: > >> Mark Lubratt <[EMAIL PROTECTED]> writes: > >>> I've been trying to be careful, but I've gotten out of synch with > >>> whether or not I've applied th

Re: [HACKERS] [ADMIN] Schema comparisons

2004-02-28 Thread Tom Lane
Mark Lubratt <[EMAIL PROTECTED]> writes: > On Feb 27, 2004, at 10:28 PM, Tom Lane wrote: >> Mark Lubratt <[EMAIL PROTECTED]> 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 produ