Re: backing and restoring whole database server - how does this script look

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Koczan <pjkoczan(at)gmail(dot)com>
Cc: Kevin Bailey <kbailey(at)freewayprojects(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: backing and restoring whole database server - how does this script look
Date: 2009-04-10 19:45:31
Message-ID: 29476.1239392731@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Peter Koczan <pjkoczan(at)gmail(dot)com> writes:
> On Fri, Apr 10, 2009 at 4:34 AM, Kevin Bailey
> <kbailey(at)freewayprojects(dot)com> wrote:
>> Just to make thigs more interesting, we have to do this for a version 8.1
>> server and an older 7.4 server which has blobs in it.

> If I remember correctly, pg_dumpall only allows text format dumps, and
> blobs need to be dumped in non-text formats. This might have changed
> since 7.4, but I couldn't find any source either way.

The 8.1 release notes quoth:

Allow pg_dump to dump large objects even in text mode (Tom)

With this change, large objects are now always dumped; the former -b switch is a no-op.

so in that version and up you can use pg_dumpall without worrying about
blobs. The upthread proposal of separately dumping each database in
-Fc mode is probably the only solution in 7.4, but you ought to be
thinking about how to get off 7.4 not how to perpetuate it. We'll be
dropping support for 7.4 RSN.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Plugge, Joe R. 2009-04-10 19:49:37 Re: connectivity problem
Previous Message Scott Marlowe 2009-04-10 19:42:04 Re: connectivity problem