Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et0za-00034F-Oa for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Mar 2018 01:02:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1et0zZ-0008Ib-Od for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Mar 2018 01:02:09 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et0vh-0000H1-6L for pgsql-hackers@lists.postgresql.org; Tue, 06 Mar 2018 00:58:09 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et0ve-00085r-CH for pgsql-hackers@postgresql.org; Tue, 06 Mar 2018 00:58:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A2F3120D6E; Mon, 5 Mar 2018 19:58:05 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 05 Mar 2018 19:58:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=cPoKbU5niPYbz3Eu12Qr2h0OEslOI aCNk/n4i5SZhxE=; b=J3qtD6+XvoE28mLSQSsUHThwO4+B2WeUocTqB3Dz+rX9c qI54Js4iuRKg1LJkrytjX1NMDmiRWOYZVkC9ukGJD5m/0v58h5gKepYBcCjjWMJX XlMi9Rx6qTpXukEUwIf4wf4ARDnGVDfwCrVjgQXPTHnqvLQHuDCP4h2N4LYudcLi CfJz2JFgPEajsteEqDFjB3M25irdMDdoWThttFXGtuRzGahuQKYbQHni73wDOKvo OCmfdLSbjFmfWwstdtnQMnCIt95gDJ2Q96D9g9s1q8ez9NGkTiDdRpJoNw8UZ88P uokSqODkkOBFC3899OH0TQcoazY1G00IeLgTKzbnw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 6436D7E12E; Mon, 5 Mar 2018 19:58:05 -0500 (EST) Date: Mon, 5 Mar 2018 16:58:04 -0800 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix inadequate locking during get_rel_oids(). Message-ID: <20180306005804.wdqt2jd2kh2qzjpq@alap3.anarazel.de> References: <20180306001152.qxguen2kclystz7p@alap3.anarazel.de> <20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de> <30311.1520297603@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30311.1520297603@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-03-05 19:53:23 -0500, Tom Lane wrote: > Andres Freund writes: > > Scratch that, we should be going down the > > /* If caller supplied OID, there's nothing we need do here. */ > > branch in expand_vacuum_rel() for autovacuum, so this shouldn't > > matter. Sorry for the noise > > But you said you'd seen blocking behind AEL with NOWAIT, so there's > still a problem for manual vacuums no? Right. But that facility isn't yet exposed to SQL, just in the patch I'm reviewing. So there's no issue with the code from the commit I'm replying to. In [1] I wrote about one idea how to resolve this for the proposed patch. Greetings, Andres Freund [1] https://www.postgresql.org/message-id/20180306005349.b65whmvj7z6hbe2y@alap3.anarazel.de