Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B02BD650E9F for ; Thu, 3 Jul 2008 05:15:20 -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 95501-09 for ; Thu, 3 Jul 2008 05:15:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 11BD6650E9E for ; Thu, 3 Jul 2008 05:15:12 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id z27so635661ugc.49 for ; Thu, 03 Jul 2008 01:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=jA5WKdnY3M06WwzBxl/O3VJXDwtzQwQLOAUPbO0C07A=; b=aEx0JNPLBvIKESdFEEOobJqKRtGVtzR+JoUhqbcYCAg+y4YhfAoLrKlcF24pBwHNpN 0Mmnn5yfnslZHIGoECZf4Q6bIxMMLVOCKBh1d2pTddt3f8VoGUStJrFNF8xUL+py/8Yl Jcy5djIIhNssEkoNYl6IZXJKRJurrlRUqnhgM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XgLGf84L6fSc2zsTg5tx8WKd3Nacoo1b98hmWXdlwbULY0wubYS2sdPF0g9kAACt/y cHHeDAYzCT7UEhjCWHB1xZVTTCzw+fMYeJA6t2mOii/arocYVr29ecpjGKDY8oo7NeBk OtgQ/PqEwryW+VywO8x2DzpNk+fMK0K+Wmd/w= Received: by 10.125.70.14 with SMTP id x14mr1917010mkk.33.1215072910089; Thu, 03 Jul 2008 01:15:10 -0700 (PDT) Received: by 10.125.80.8 with HTTP; Thu, 3 Jul 2008 01:15:10 -0700 (PDT) Message-ID: Date: Thu, 3 Jul 2008 11:15:10 +0300 From: "Marko Kreen" To: daveg Subject: Re: [PATCHES] pg_dump lock timeout Cc: pgsql-patches@postgresql.org, hari@efrontier.com, "Postgres Hackers" In-Reply-To: <20080511113047.GV5673@sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080511113047.GV5673@sonic.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/140 X-Sequence-Number: 120400 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. - It would be more polite to do SET LOCAL instead SET. (Eg. it makes safer to use pg_dump through pooler.) - 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. -- marko