Re: How to do pg_dump + pg_restore within Perl script?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kynn Jones <kynnjo(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to do pg_dump + pg_restore within Perl script?
Date: 2010-05-10 20:23:39
Message-ID: 16896.1273523019@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kynn Jones <kynnjo(at)gmail(dot)com> writes:
> Actually, that was a mistake on my part. That should have been "-Ft" rather
> than "-Z9 -Fc", since I *don't* want compression (most of the data being
> transmitted consists of highly incompressible blobs anyway). Regarding SSH,
> my understanding is that to get compression one needs to pass to it the -C
> flag at the time of creating the tunnel. But my grasp of these details is
> tenuous as best.

Actually, I'd suggest -Fc -Z0, or maybe plain text dump, if your
motivation is to avoid compression. -Ft has its own issues that
make it a less-than-desirable choice; you shouldn't pick it unless
you really specifically need a tar-compatible dump format.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message justin@magwerks.com 2010-05-10 20:37:33 files stored in the database
Previous Message Tim Landscheidt 2010-05-10 20:19:14 Re: question about unique indexes