Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3A3DB1337B3E for ; Thu, 3 Mar 2011 14:06:14 -0400 (AST) 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 85873-04 for ; Thu, 3 Mar 2011 18:06:06 +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 0518F133655C for ; Thu, 3 Mar 2011 14:05:35 -0400 (AST) 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 p23I5Vus012453; Thu, 3 Mar 2011 13:05:31 -0500 (EST) To: YAMAMOTO Takashi cc: Itagaki Takahiro , pgsql-bugs@postgresql.org Subject: Re: BUG #5906: assertion failure in AtCleanup_Portals In-reply-to: <9890.1299171337@sss.pgh.pa.us> References: <16798.1299078556@sss.pgh.pa.us> <20110303001403.11CB319CEB6@mail.netbsd.org> <9890.1299171337@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 03 Mar 2011 11:55:37 -0500" Date: Thu, 03 Mar 2011 13:05:31 -0500 Message-ID: <12452.1299175531@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: 201103/64 X-Sequence-Number: 29574 I wrote: > We could revert the addition of the "cleanup == NULL" assert in > AtCleanup_Portals, but I'm still feeling that that assertion is a good > thing. Maybe the cleanest fix is to have PortalRun do something to run > the cleanup hook where it does this: > /* Prevent portal's commands from being re-executed */ > portal->status = PORTAL_DONE; Fixed that way. Thanks for the report! regards, tom lane