Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsfJB-0008U8-04 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Jun 2014 21:34:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WsfJA-0001aU-F2 for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Jun 2014 21:34:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsfJ9-0001aO-PF for pgsql-bugs@postgresql.org; Thu, 05 Jun 2014 21:34:47 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsfJ5-0001q8-Ty for pgsql-bugs@postgresql.org; Thu, 05 Jun 2014 21:34:45 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id A097C4E8007; Thu, 5 Jun 2014 23:34:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC408D.dip0.t-ipconnect.de [93.220.64.141]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id DBF6A4E8006; Thu, 5 Jun 2014 23:34:36 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 55DDB10034B; Thu, 5 Jun 2014 23:34:36 +0200 (CEST) Date: Thu, 5 Jun 2014 23:34:36 +0200 From: Andres Freund To: Heikki Linnakangas Cc: levertond@googlemail.com, pgsql-bugs@postgresql.org, Alvaro Herrera Subject: Re: BUG #10533: 9.4 beta1 assertion failure in autovacuum process Message-ID: <20140605213436.GA17217@awork2.anarazel.de> References: <20140605180121.3061.28250@wrigleys.postgresql.org> <5390BA0F.2030103@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5390BA0F.2030103@vmware.com> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, On 2014-06-05 21:42:23 +0300, Heikki Linnakangas wrote: > I think we'll need a variant of GetMultiXactIdMembers() that only returns > the update XID, avoiding the palloc(). The straight-forward fix would be to > copy-paste contents of GetMultiXactIdMembers() into > MultiXactIdGetUpdateXid(), and instead of returning the members in an array, > only return the update-xid. But it's a long and complicated function, so > copy-pasting is not a good option. I think it needs to be refactored into > some kind of a helper function that both MultiXactIdGetUpdateXid() and > GetMultiXactIdMembers() could call. While it certainly would be nice to have such a function I have my doubt it's realistic to get it for 9.4 and the backbranches. I haven't thought particularly much about this, but I don't really see why the heap_page_is_all_visible() bit needs to be in a critical section? Can't we just do that entire bit after the log_heap_clean()? Then the heap_page_is_all_visible() can be done outside a critical section. Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs