Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5tnd-003jkZ-25 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 23:07:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5tnc-006F4d-0U for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 23:07:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5tnb-006F4V-2o for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 23:07:36 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5tna-00000001Dh6-2a3K for pgsql-hackers@postgresql.org; Thu, 26 Mar 2026 23:07:35 +0000 Received: from phl-compute-12.internal (phl-compute-12.internal [10.202.2.52]) by mailfout.stl.internal (Postfix) with ESMTP id 3B28E1D00289; Thu, 26 Mar 2026 19:07:34 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Thu, 26 Mar 2026 19:07:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774566454; x=1774652854; bh=IxuV/EcEFm l781apmDLj5DHXKhu2YPD7GYVI7vYFK1Y=; b=chXTo/cxaqxJ1YEx/oxlJJ3NHj juGy0C+AEkfUarezdCE9ADTDKkwc85UoAxLd3wSr3tBSXqXOXDd2P+Vxf8PSGO5Y swd+p1lcNhEpo+egqVNH/GpYXKFM9wC/O7aP3Brfe/9zKL6fp+fPK1Apu3ffIPWB eqhrIXZ8fG1xYq79RataPGCjAsgejnZE8seyJo52F/q+Idl0exxGIPWbn4Hn0iTz 1mbmcwVirbQ2JZnfDP1l9inw9mBx1r64vBVvhWHQEiKeDUn1Aaix6npgT1Frrsry oUGrjziD7n1zvazCbJNhXgHtNimBZQY51Y9SGUf+cxN66x1qCLBjBY5vB+3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774566454; x=1774652854; bh=IxuV/EcEFml781apmDLj5DHXKhu2YPD7GYV I7vYFK1Y=; b=6Dwgqpj9l59KXLezXX6Y8Tf2MKEJK0Rt8n90hkgcjbJyXXEr2je Jd88p1Pdj5ayDnggvez0ipiUliJLyQQVrxrT0bY2QVzdRX+aazCwFLI/zOViKSW2 aghbhzsq4ag4kR2105g4t55wnD+HEV+bmsBjwWPrKrg+gEBgxLSWNzoAJbWTWMx8 1KMJqPA8f5nVzGUGF4IBbjeVuoyWXKCjBCQ4+ZQn1wITK60q8iev7ohIyh1n7VVj 1HDHHTZd2Gi1m5yzw8xhGDpQ+fK4kqms6driXrGzl1mtBPzBDAiBuBRLQf/F4jKs xvIe974Rt2qOeOuosceP+lNxkId6nOx8KYA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdekieejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepnhgrgh grthgrsehsrhgrohhsshdrtghordhjphdprhgtphhtthhopehsrghmihhmshgvihhhsehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtgh hrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Mar 2026 19:07:32 -0400 (EDT) Date: Fri, 27 Mar 2026 08:07:29 +0900 From: Michael Paquier To: Yugo Nagata Cc: Sami Imseih , Pgsql Hackers Subject: Re: Track skipped tables during autovacuum and autoanalyze Message-ID: References: <20260324151133.7940a5c1f2ebd594d54da481@sraoss.co.jp> <20260325012847.e026ba1860c07288efe3e97d@sraoss.co.jp> <20260326192203.e6dbb8d80f8d27dc15ceee59@sraoss.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="1/Rqlj3ohlLYjYho" Content-Disposition: inline In-Reply-To: <20260326192203.e6dbb8d80f8d27dc15ceee59@sraoss.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --1/Rqlj3ohlLYjYho Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 26, 2026 at 07:22:03PM +0900, Yugo Nagata wrote: > To handle the possibility that the table is dropped between > RangeVarGetRelid() and the lock attempt, SearchSysCacheExists1() is > used after acquiring the lock. (Noticed while skimming through my emails this morning..) +void +pgstat_report_skipped_vacuum_analyze(Oid relid, bool vacuum, bool analyze, + bool autovacuum) I'd recommend to replace this interface with three booleans with a set of three bitwise flags. That would be less error prone for the callers of this function, or we could finish by aggregating counters we don't want to. -- Michael --1/Rqlj3ohlLYjYho Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnFvDEACgkQnvQgOdby QH167Q/9EBjoGXCS50oQu/BOCT3FeGf0DwoNf4Hc7myC1OmYB7orDqLXrDgSrB6t 8p0F6TKuaG8iz5HgDgfZH6sYIannQyDSXQWgi4++VVGIdTlfq2K49n/muiKNhXUQ OSH9SWTmd1DQnqqBBCdIeii7SuevfHIDNltxY3AjcLGSv31wqjaH2QhC09MOX2yH a9T11Pk1R5HfgjLvuUxQCXK0/j5Tt+pDGnqKfgD7sFhbaGxOf5+ksM86fcpxcxVK g4LcHDMeQH4OXuDp4ztKFIx0Zcz/CpQXcI19ExRP4p/tzWoFX8Hrgrafej6FIljl OIeYc0ETXfD+DSZ1Zgt3g596P8e09CMhsmKU+8CW5TvifcuIOPlZdtpmJ4nMT53o w78sjAm3F6g/ilLFSExgaxpxrmTG9Lt82MElh99KqmvBtXfJg+EbfYVicBsJ5GqU MvP/7U+vUTJaJxdZOfO10tEt5S2GVeT+TD045AFBiJOuxMaMPsCx3JciEc+x5bWH 5WqQL6JWNxDWmGuC+jX2kxkdgbVzOPbDK80TMwx6vnW8II1qeQemNhKzB2ShGWQZ UUwYheyw7GHfCOO/TqV04eIbroxGti+c9mIl5Mtu29yKsz6mfsaZSe4yAYhLPQUj PZDd1VS0A5QnWr9gRGEVc86dJrqLEXCd36eYkgC1XphFTmiMEro= =5281 -----END PGP SIGNATURE----- --1/Rqlj3ohlLYjYho--