Re: sync structures

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: John <jfabiani(at)yolo(dot)com>
Cc: General postgres mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: sync structures
Date: 2009-09-28 16:06:25
Message-ID: 92869e660909280906m67a0dc0ap145f21eba692e307@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2009/9/28 John <jfabiani(at)yolo(dot)com>

> Hi,
> I have a development DB and a production DB. I need a way to sync the
> changes
> I make to the stucture in the devel DB to the production DB. I found
> pgdiff
> but can't get it to work. I would like a solution that would work on
> windows
> and linux. But I'll take either alone.
>
> postgres 8.3
> openSUSE 11.0
> windows XP/vista
>
> Thanks in advance for any help.
>
>
You could use standard text compare programs. They won't write a patch for
you. There's still some niche for live DBAs.

pg_dump -sOx dev_db_name > dev.schema
pg_dump -sOx prod_db_name > prod.schema
diff -u dev.schema prod.schema

--
Filip Rembiałkowski
JID,mailto:filip(dot)rembialkowski(at)gmail(dot)com
http://filip.rembialkowski.net/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John 2009-09-28 16:24:49 Re: sync structures
Previous Message Martijn van Oosterhout 2009-09-28 15:51:46 Re: bulk inserts