Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id CB821650E82; Thu, 3 Jul 2008 09:55:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55694-03; Thu, 3 Jul 2008 09:55:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by postgresql.org (Postfix) with ESMTP id C1F8C650EFB; Thu, 3 Jul 2008 09:55:38 -0300 (ADT) Received: from newshell.sonic.net (bolt.sonic.net [208.201.242.19]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id m63Ct1RP023538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Jul 2008 05:55:01 -0700 Received: from bolt.sonic.net (IDENT:Y3ERAAfDx3plQ0JnveIcpUYApLjG7abM@localhost.localdomain [127.0.0.1]) by newshell.sonic.net (8.13.6/8.12.1) with ESMTP id m63Ct1aA030343; Thu, 3 Jul 2008 05:55:01 -0700 Received: (from daveg@localhost) by bolt.sonic.net (8.13.6/8.12.1/Submit) id m63Ct1WV030342; Thu, 3 Jul 2008 05:55:01 -0700 Date: Thu, 3 Jul 2008 05:55:01 -0700 From: daveg To: Marko Kreen Cc: pgsql-patches@postgresql.org, hari@efrontier.com, Postgres Hackers Subject: Re: [PATCHES] pg_dump lock timeout Message-ID: <20080703125501.GS866@sonic.net> References: <20080511113047.GV5673@sonic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/154 X-Sequence-Number: 120414 On Thu, Jul 03, 2008 at 11:15:10AM +0300, Marko Kreen wrote: > On 5/11/08, daveg wrote: > > Attached is a patch to add a commandline option to pg_dump to limit how long > > pg_dump will wait for locks during startup. > > My quick review: > > - It does not seem important enough to waste a short option on. > Having only long option should be enough. Agreed. I'll change it. > - It would be more polite to do SET LOCAL instead SET. > (Eg. it makes safer to use pg_dump through pooler.) Also agreed. Thanks. > - The statement_timeout is set back with "statement_timeout = default" > Maybe it would be better to do "= 0" here? Although such decision > would go outside the scope of the patch, I see no sense having > any other statement_timeout for actual dumping. I'd prefer to leave whatever policy is otherwise in place alone. I can see use cases for either having or not having a timeout for pg_dump, but it does seem outside the scope of this patch. Thanks for you review and comments. -dg -- David Gould daveg@sonic.net 510 536 1443 510 282 0869 If simplicity worked, the world would be overrun with insects.