Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D96E62E0083 for ; Thu, 21 Feb 2008 01:30:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20898-02 for ; Thu, 21 Feb 2008 01:30:17 -0400 (AST) Received: from oxford.xeocode.com (unknown [87.127.95.194]) by postgresql.org (Postfix) with ESMTP id 3B5252E005E for ; Thu, 21 Feb 2008 01:30:17 -0400 (AST) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.69) (envelope-from ) id 1JS40c-0002Ii-Lv; Thu, 21 Feb 2008 05:30:14 +0000 To: "Chris" Cc: Subject: Re: 7 hrs for a pg_restore? In-Reply-To: <47BCB934.6020205@gmail.com> (Chris's message of "Thu\, 21 Feb 2008 10\:35\:16 +1100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX" 65513) References: <200802191303.58840.doug@hunley.homeip.net> <200802191555.43340.doug@hunley.homeip.net> <080DA59E-2C02-4370-8584-FA7C8CC008B0@myemma.com> <200802200826.38611.doug@hunley.homeip.net> <874pc3ww96.fsf@oxford.xeocode.com> <0C5E3C24-530F-40AD-8CB4-B0477A368F6E@myemma.com> <9755.1203526446@sss.pgh.pa.us> <87zltvurve.fsf@oxford.xeocode.com> <47BCB934.6020205@gmail.com> From: Gregory Stark Organization: EnterpriseDB Date: Thu, 21 Feb 2008 05:30:14 +0000 Message-ID: <87mypuvpuh.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/260 X-Sequence-Number: 28802 "Chris" writes: >> When I said "obfuscating" I meant it. I'm pretty familiar with sh scripting >> and I'm not even sure what the && behaviour would do. > > It chains commands together so if the first fails the second doesn't happen. I meant in this case, not in general. That is, does it introduce a subshell? Sh traditionally has to introduce to implement some of the logical control and pipe operators. I'm not sure if a simple && is enough but often it's surprising how quickly that happens. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com Ask me about EnterpriseDB's Slony Replication support!