Re: 7 hrs for a pg_restore? - Mailing list pgsql-performance

From Erik Jones
Subject Re: 7 hrs for a pg_restore?
Date
Msg-id 0C5E3C24-530F-40AD-8CB4-B0477A368F6E@myemma.com
Whole thread Raw
In response to Re: 7 hrs for a pg_restore?  (Gregory Stark <stark@enterprisedb.com>)
Responses Re: 7 hrs for a pg_restore?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
On Feb 20, 2008, at 8:14 AM, Gregory Stark wrote:

> "Douglas J Hunley" <doug@hunley.homeip.net> writes:
>
>> On Tuesday 19 February 2008 16:32:02 Erik Jones wrote:
>>> pg_restore is a postgres client app that uses libpq to connect and,
>>> thus, will pick up anything in your $PGOPTIONS env variable.  So,
>>>
>>> PGOPTONS="-c maintenance_work_mem=512MB" && pg_restore ....
>>
>> now that's just plain cool
>>
>> /me updates our wiki
>
> I would suggest leaving out the && which only obfuscate what's
> going on here.
>
> PGOPTIONS=... pg_restore ...
>
> would work just as well and be clearer about what's going on.

Right, that's just an unnecessary habit of mine.

Erik Jones

DBA | Emma®
erik@myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)

Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com




pgsql-performance by date:

Previous
From: Michael Stone
Date:
Subject: Re: Anyone using a SAN?
Next
From: Tom Lane
Date:
Subject: Re: 7 hrs for a pg_restore?