Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wtyxz-0007rA-2W for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 12:46:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wtyxy-0007jL-JN for pgsql-bugs@arkaria.postgresql.org; Mon, 09 Jun 2014 12:46:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wtyxx-0007jE-La for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 12:46:21 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wtyxt-00081X-W6 for pgsql-bugs@postgresql.org; Mon, 09 Jun 2014 12:46:20 +0000 Received: from intern.anarazel.de (p5DDC4D2D.dip0.t-ipconnect.de [93.220.77.45]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 5378A4E8006; Mon, 9 Jun 2014 14:46:17 +0200 (CEST) Date: Mon, 9 Jun 2014 14:46:16 +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: <20140609124616.GC3149@alap3.anarazel.de> References: <20140605180121.3061.28250@wrigleys.postgresql.org> <5390BA0F.2030103@vmware.com> <20140605213436.GA17217@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140605213436.GA17217@awork2.anarazel.de> 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 On 2014-06-05 23:34:36 +0200, Andres Freund wrote: > 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. Before I start working on a patch along those lines, do you see any problems with making the critical section smaller? 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