Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZLWM-00059I-Mf for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 22:40:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZLWL-0006Q8-LX for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 22:40:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZLWK-0006M4-Fn for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 22:40:33 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZLWD-0003Bi-V0 for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 22:40:32 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id C038A10ED; Wed, 21 Apr 2021 18:40:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 21 Apr 2021 18:40:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=nCtJekowPjLHvCbHrGPnWq4WNbNpVknE8kitKsZSavQ=; b=e4VEYsmP 5IJ9L6118Qw21c/NUndQmKTXKN+h0FQqufR8PMPexvclXJH8jbWQNN1GiWhHygMR DteCbiCc+1fiWHhhXYSBxrTPvJfHXlplNss1szB1aWObiaRqvzRy9qzDS0Ys1e8O WTCCSTuoU9QdQkfq7tAxKi4ZxyBMdNi1BvOJwePnIBJsryI4ogvPmpdHFWKo/w9h DepWfi9idyBSOopFzievbLrgzp7QoEXyYrgsPqWNKBAI+U4rJ9rVyhO5dJr8n0zy F8LKua/MBAeykcI/NsvzG92UYHIu0ACiIWTLRCaOqh2fGT47ynrIZi7ChB9r4W9b y3O9viUvsJ5B4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtledguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjggfsehtke ertddtredunecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeevjeejkeejje eiveeuuddvfeffiefhfffgleehgfeugeejheduvdefkeeihffftdenucffohhmrghinhep phhoshhtghhrvghsqhhlrdhorhhgnecukfhppeduledtrdelhedrudelrdelheenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 47C5A240054; Wed, 21 Apr 2021 18:40:22 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E3A502A0BD7; Wed, 21 Apr 2021 18:40:19 -0400 (-04) Date: Wed, 21 Apr 2021 18:40:19 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: autovacuum: handle analyze for partitioned tables Message-ID: <20210421224019.GA12807@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1901125.1617904665@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Apr-08, Tom Lane wrote: > BTW, another thing that looks like a race condition is the > extract_autovac_opts() call that is done a little bit earlier, > also without lock. I think this is actually safe, but it's ONLY > safe because we resisted the calls by certain people to add a > toast table to pg_class. Otherwise, fetching reloptions could > have involved a toast pointer dereference, and it would then be > racy whether the toasted data was still there. As-is, even if > the pg_class row we're looking at has been deleted, we can safely > disassemble its reloptions. I think this matter is deserving > of a comment at least. True. I added a comment there. Thanks, -- Álvaro Herrera Valdivia, Chile "I am amazed at [the pgsql-sql] mailing list for the wonderful support, and lack of hesitasion in answering a lost soul's question, I just wished the rest of the mailing list could be like this." (Fotis) (http://archives.postgresql.org/pgsql-sql/2006-06/msg00265.php)