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-00034G-Oa for pgsql-committers@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-0008Ic-Oe for pgsql-committers@arkaria.postgresql.org; Tue, 06 Mar 2018 01:02:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et0vn-000150-J8; Tue, 06 Mar 2018 00:58:15 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1et0vd-0000ZH-UY; Tue, 06 Mar 2018 00:58:14 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 0CD3DAEA; Mon, 5 Mar 2018 19:58:03 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 05 Mar 2018 19:58:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; 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= fm1; bh=8tWS5EXUtF8MJ1ztv71cnpNomk5q5MyNDUAcRdlOdYU=; b=0jBLMms5 6o6YzNhq5/dIyh17gSRBwrQ0jNRsrSkNQWM3SWdJEe/cE/j9KhRbtabpfTkcqJZO uHivFSmF0UnQEilSZbO86NV8ogDdt/PiQ9daQcboc1vRMwkaAcrxG/2OlolP9dxk cY8d8cjEVIelEbR/8wqck+pd0QSzL4owCOBiptOmJnkqEcdLSZI206aljvZKgDPL Kq9krCywYvSVAKxoZLaPL5PiDaO2UyBgMkU2NSGr3w7mnx4+e1yIjnk/JpLj+TxM gijCf1z42n+PMEls6n4YVXIwD3IAQcQ7fxTsBlWIq+K8GJ1X8LqLIBKWZZ70k92L BkgI9/v6aZu2XQ== 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=8tWS5EXUtF8MJ1ztv71cnpNomk5q5 MyNDUAcRdlOdYU=; b=PU1nOCKOwk1xpaBVAYHx3Xad/UUQ8/XPIANrbOo9cOxD+ AzKY1nYCebg9xYOdkaK8s2j6ERrITUjNYSpREcH7VhQkk2dZnUBnpAL6f+mG7wVl cqhWFjIemFDeKTBNcVByRunh5ftmBEXzUvv4pXTVhmasJi3cOYLH77c2SlChQsFg 3dYiNheeqIrhii020Isx2djJtWqGRpY0iK8j2Dj2pdClqMslcLoO0lthMRJ0manf rKH3MZOQiInTFNA3Ltou5sKhc+nnZCXWDTXv/LutT3RCih61I530xxC2q99hDD68 lY/lKJtjwpYjphLvuwRd4XHNuA2h/tRvfyeVMGeLw== X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id F3D1B7E12E; Mon, 5 Mar 2018 19:58:01 -0500 (EST) Date: Tue, 6 Mar 2018 09:57:54 +0900 From: Michael Paquier To: Andres Freund Cc: Tom Lane , pgsql-hackers@postgresql.org, pgsql-committers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix inadequate locking during get_rel_oids(). Message-ID: <20180306005753.GC1878@paquier.xyz> References: <20180306001152.qxguen2kclystz7p@alap3.anarazel.de> <20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PHCdUe6m4AxPMzOu" Content-Disposition: inline In-Reply-To: <20180306003409.qwwdgn3bw4ifi5s4@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PHCdUe6m4AxPMzOu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 05, 2018 at 04:34:09PM -0800, Andres Freund wrote: > Scratch that, we should be going down the > /* If caller supplied OID, there's nothing we need do here. */ > if (OidIsValid(vrel->oid)) > { > oldcontext = MemoryContextSwitchTo(vac_context); > vacrels = lappend(vacrels, vrel); > MemoryContextSwitchTo(oldcontext); > } > branch in expand_vacuum_rel() for autovacuum, so this shouldn't > matter. Sorry for the noise Yes, I don't see a problem. However I can understand that it is easy to be confused on those code paths if you are not used to them and this area has changed quite a bit the last years. Perhaps we could add an Assert(IsAutoVacuumWorkerProcess()) to reduce the confusion? -- Michael --PHCdUe6m4AxPMzOu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqd55EACgkQnvQgOdby QH2rsxAAo8Ii2vQ9rU0t5WWOEKItBCVB6KntqpH6e5dUYTVewIaOJ64y37yeAls+ Q7T27bRJix7NMOXHD6c8UROhZQyN0aqgOziJx6kr2bPZJ+sakiBFbIrsCSf1i5Xh P22e0k74SeP5fwcyxvTuYXfIPBY3k70bruqApSFT3CiXxtYtLFJIdtqKsDZv1VFL oYDTCL/5OreInvEhnEgFCbgUSdaulXojQy/ecpqfzEJPdzwIhhsnL4AtEl0FmMXf GCCtELxR/dFAjUJEzG70WmOUq1GRu4y7kPByNznxX4m++8LbHDIZtgDgIHJjX9qS nae0oZOERu2/4MGKs7D5l9VATNCZdSIIKEy3nKdWv2Jee6ObN+YlbP2pLVddeo4y 6OFQcBzpnUGsvahWxbJECwD3sEMZD/glGFSYnFz4HgzUjt8qXfNUOm/oXp/eC3WB /Jh3NVdBrNmbW9h8VPaF9Znv4xM96mntLULPUrWwWfFFH1tG7S0ZLnohPcJ7ek7h 6904xxKigevT4ajyj4GJCq1HluK+wNGvx3pmy6s+vesDhJ6ap1qGmjtXdHoR52vG /AJ82OeKKfvVgNd2yXD9J7aQvq6ihyfFLFGLNvaXBH+buTVFhylMkG+z+g9i5n+0 MLtJd/pc/ugBeyXKqc1fVHwjF46Ei7uO/yTcdP6muUboR8RklAQ= =WkR4 -----END PGP SIGNATURE----- --PHCdUe6m4AxPMzOu--