Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wt2Gm-00011N-Bh for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 22:05:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wt2Gl-0002Sf-Rm for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jun 2014 22:05:51 +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 1Wt2Gl-0002SZ-4L for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 22:05:51 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wt2Gh-0003QX-H0 for pgsql-bugs@postgresql.org; Fri, 06 Jun 2014 22:05:49 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id C4A364F0001; Sat, 7 Jun 2014 00:05:42 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-6.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC41C2.dip0.t-ipconnect.de [93.220.65.194]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 693B44E8006; Sat, 7 Jun 2014 00:05:38 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id EBA6410068F; Sat, 7 Jun 2014 00:05:37 +0200 (CEST) Date: Sat, 7 Jun 2014 00:05:37 +0200 From: Andres Freund To: Tom Lane Cc: Alvaro Herrera , Keith Fiske , Heikki Linnakangas , levertond@googlemail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #10533: 9.4 beta1 assertion failure in autovacuum process Message-ID: <20140606220537.GC23201@awork2.anarazel.de> References: <20140605180121.3061.28250@wrigleys.postgresql.org> <5390BA0F.2030103@vmware.com> <20140605213436.GA17217@awork2.anarazel.de> <20140606205557.GX5146@eldon.alvh.no-ip.org> <20140606205801.GB23201@awork2.anarazel.de> <13635.1402092233@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13635.1402092233@sss.pgh.pa.us> 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-06 18:03:53 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2014-06-06 16:55:58 -0400, Alvaro Herrera wrote: > >> Uh, this is a completely different problem. We discussed long ago that > >> those pallocs in relpath() were going to cause a problem: > > > I actually don't think it's a different problem. If we'd restructure > > things so the critical sections are separate this wouldn't be a > > problem. It's imo not a particularly good idea to mdopen() inside a > > critical section either. > > The point here seems to be that lazy_vacuum_page does the visibility map > ops inside its own critical section. Why? Setting a visibility bit > doesn't seem like it's critical. Why can't we just move the > END_CRIT_SECTION() to before the PageIsAllVisible test? Yea, that's what I am proposing upthread. If we move the visibility tests out of the critical section this will get rid of the original report as well. 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