Re: Constraint->function dependency and dump in 7.3

From: Rod Taylor <pg(at)rbt(dot)ca>
To: SZŰCS Gábor <surrano(at)mailbox(dot)hu>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Constraint->function dependency and dump in 7.3
Date: 2004-07-13 18:03:37
Message-ID: 1089741816.48027.89.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 2004-07-13 at 13:42, SZŰCS Gábor wrote:
> Dear Rod,
>
> Thanks. It'll be a pain to have two versions between the prod and devel
> servers, but I'll forward this info to the chief.

You can make this part easier on yourself.

Dump the structure from production and migrate it to devel (fix the dump
file). Keep this file.

>From now on when applying changes to production, keep the structural
changes applied as a separate SQL file (numbers work well).

When building a new box to duplicate production:
1. Apply all patches in order
for i in `ls *.sql` ; do cat $i | psql test_db ; done
2. Do a data dump of production and restore that to the testing area
pg_dump --data-only prod_db | psql test_db

Now you don't need to worry about whether the production schema will or
will not dump properly, since you can reproduce that using external
files.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message SZŰCS Gábor 2004-07-13 18:20:24 Re: Constraint->function dependency and dump in 7.3
Previous Message SZŰCS Gábor 2004-07-13 17:54:28 Certain COPY's ignored from dump?