Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CB510B5DE3C for ; Wed, 1 Jun 2011 21:16:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 87915-03-8 for ; Thu, 2 Jun 2011 00:16:33 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6C5CAB61B98 for ; Wed, 1 Jun 2011 21:15:42 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p520Feer029869; Wed, 1 Jun 2011 20:15:40 -0400 (EDT) To: Robert Haas cc: Tatsuo Ishii , mangoo@wpkg.org, scott.marlowe@gmail.com, t-ishii@sra.co.jp, Kevin.Grittner@wicourts.gov, pgsql-hackers@postgresql.org Subject: Re: pgpool versus sequences In-reply-to: <27741.1306968830@sss.pgh.pa.us> References: <16063.1306811813@sss.pgh.pa.us> <4DE4A652.2040301@wpkg.org> <25524.1306848814@sss.pgh.pa.us> <20110601.001430.1098605953350881110.t-ishii@sraoss.co.jp> <26909.1306965898@sss.pgh.pa.us> <27741.1306968830@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 01 Jun 2011 18:53:50 -0400" Date: Wed, 01 Jun 2011 20:15:40 -0400 Message-ID: <29868.1306973740@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/85 X-Sequence-Number: 188798 I wrote: > Please note also that what pgpool users have got right now is a time > bomb, which is not better than immediately-visible breakage. BTW, so far as that goes, I suggest that we tweak nextval() and setval() to force the sequence tuple's xmax to zero. That will provide a simple recovery path for anyone who's at risk at the moment. Of course, this has to go hand-in-hand with the change to forbid SELECT FOR UPDATE, else those operations would risk breaking active tuple locks. regards, tom lane