Re: COPY between 7.4.x and 8.3.x

From: Jack Orenstein <jack(dot)orenstein(at)hds(dot)com>
To: lists(at)stringsutils(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: COPY between 7.4.x and 8.3.x
Date: 2008-07-21 22:01:08
Message-ID: 48850724.2040002@hds.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Francisco Reyes wrote:
> On 4:05 pm 07/21/08 Jack Orenstein <jack(dot)orenstein(at)hds(dot)com> wrote:

>> What if we do a binary copy instead?
> What do you mean by a binary copy?
> pg_dump -Fc?

No, I mean changing this:

psql -h $SOURCE_HOST ... -c "copy $SOURCE_SCHEMA.$SOURCE_TABLE to stdout" |\
psql ... -c "copy $TARGET_SCHEMA.$TARGET_TABLE from stdin"

to this:

psql -h $SOURCE_HOST ... -c "copy binary $SOURCE_SCHEMA.$SOURCE_TABLE to
stdout" |\
psql ... -c "copy binary $TARGET_SCHEMA.$TARGET_TABLE from stdin"

> Why will you keep copying data back and forth?
> Not possible to setup a new 8.3, migrate to it and then upgrade the other
> 7.4 machine to 8.3?

We're migrating a cluster from 7.4 to 8.3. To maintain availability, we need the
7.4 and 8.3 databases up at the same time. We're copying data across versions
for this reason.

Jack

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-07-21 23:53:47 ERROR: could not open relation with OID 49152
Previous Message Emil Pedersen 2008-07-21 20:59:47 inconsistent program behavior, fresh eyes needed