Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gh2Kd-0007tC-Pv for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 01:06:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gh2Kc-0005lQ-Bt for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Jan 2019 01:06:54 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gh2Ka-0005lJ-Qs for pgsql-hackers@lists.postgresql.org; Wed, 09 Jan 2019 01:06:54 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gh2KS-00076L-Le for pgsql-hackers@postgresql.org; Wed, 09 Jan 2019 01:06:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id EE0E025037; Tue, 8 Jan 2019 20:06:42 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 08 Jan 2019 20:06:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=lEYUzgF3mUFwNYHbQrrnj2RerwS zMB7KpiBV6pMbbB0=; b=IDeSmBAkxl2QH7rgIv6zFNpqzf7TS+gKrp0X2juOXP5 QcvWgbAarIPKGkkqoNGgRhoPZw1c6PXmM+FNrNsCJeO+MG0bFN8H4cBWqcUJKPaT KL2g2AMnpfQtVvjfGBFZz56avKfPgv/+wACWWuWpyxWo172ejEq/fmJtIOUv9Cog YINKTK6PeLM3pQJPl0L79/i+7TWOmGNTDZAdPWalD1Z5j4Xzia+04HjiVdBf49CS L+tT1qQHbc9J58DXTBDq1o13S824DQdvgnq6pmMTg7buEvRKuukTLbWe1J3gLmWV jW8DEw47WrhKHieTUKj4kKkrgTAoyZEx279p0ulEYqg== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lEYUzg F3mUFwNYHbQrrnj2RerwSzMB7KpiBV6pMbbB0=; b=LUOZTnZc0oH68a1vP7iJ6N FK/rHu1xg2VaHU+p4Jwih7Xd6yxnvJgcaWDhW8OpFVpufB+Mq8gJXwyutS0ZmYZW zqZuuulIhblQjzb091Z9WOCmFpPlkmNqvi4DytggCMhrCuCvqDhuXSkDBqdcAdZe JRt0BEV7BJ/Fhi36GDYL18e+P8yCo62JVfc0Xl5n4pa60kbRwDMauhBrEXXkxDNN gQW9Njid+djg7DT+zNuVKTQYHSumz+0sWtmxtoTXoZ0meWYAaAMstgMQyiY+OLYt Up7mAnsKAOiFqupn8vCPCtFs2fVcOlnt+T3u1KHxPmfPr1VShxgiU3l/R7eddlEw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrfedtgdefudculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepiedurddvudehrddufeejrdduiedvnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id BC44C10087; Tue, 8 Jan 2019 20:06:40 -0500 (EST) Date: Wed, 9 Jan 2019 10:06:37 +0900 From: Michael Paquier To: "Bossart, Nathan" Cc: Masahiko Sawada , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: A few new options for vacuumdb Message-ID: <20190109010637.GC21835@paquier.xyz> References: <20181220020522.GM27104@paquier.xyz> <7B4ACE8E-5D81-416B-B984-17E60F7ABABA@amazon.com> <33F59F9F-78A6-4ECE-BFE0-B1E4AAF40094@amazon.com> <579F2B3A-4EA5-4032-AAD9-4AEE9219A4AB@amazon.com> <20190108020300.GH22498@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="69pVuxX8awAiJ7fD" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --69pVuxX8awAiJ7fD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 08, 2019 at 06:46:11PM +0000, Bossart, Nathan wrote: > This was done in order to maintain the current behavior that > appendQualifiedRelation() gives us. I found that skipping the > search_path handling here forced us to specify the schema in the > argument for --table in most cases. At the very least, I could add a > comment here to highlight the importance of fully qualifying > everything in the catalog query. What do you think? A comment sounds like a good thing. And we really shouldn't hijack search_path even for one query... > Looks good to me, except for one small thing in the documentation: >=20 > + > + Disable all page-skipping behavior during processing based on > + the visibility map, similarly to the option > + DISABLE_PAGE_SKIPPING for VACUUM. > + >=20 > I think the "similarly to the option" part is slightly misleading. > It's not just similar, it _is_ using that option in the generated > commands. Perhaps we could point to the VACUUM documentation for more > information about this one. Sure. If you have any suggestions, please feel free. Adding a link to VACUUM documentation sounds good to me, as long as we avoid duplicating the description related to DISABLE_PAGE_SKIPPING on the VACUUM page. > Good point. I think allowing multiple different relation size options > here would be confusing, too (e.g. --min-relation-size versus > --min-total-relation-size). IMO pg_total_relation_size() is the way > to go here, as we'll most likely need to process the indexes and TOAST > tables, too. If/when there is a DISABLE_INDEX_CLEANUP option for > VACUUM, we'd then want to use pg_table_size() when --min-relation-size > and --disable-index-cleanup are used together in vacuumdb. > Thoughts? Yes, using pg_total_relation_size() looks like the best option to me here as well, still this does not make me 100% comfortable from the user perspective. > I've realized that I forgot to add links to the XID/MXID wraparound > documentation like you suggested a while back. I'll make sure that > gets included in the next patch set, too. Nice, thanks. -- Michael --69pVuxX8awAiJ7fD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlw1SR0ACgkQnvQgOdby QH0ZXA/+NCTgn5SGBc6hUyp6VluooVrpJEYNcg7Jun+O6o4IPQr4IImAjA3kPP5J rMIQW0aP3WPWJ8nRkxTXJcfBCG/gE7TQPUIrDPS5EYQKrojofOl2Kuubk73nTiVE oDF6SPaKWXShMWvklNjY6cgTMnD5yzhGHbuAjeCrFW8EleMU+vOXpyNn+LbeZdzK vcY4hm9UF0Dk1UTzJJnxGwWFZANoDuTt2CQYzazZwwebxmnD1qc9phgV4XcwI7zX 2pKO4GT9+7HvBDnm5FmSYduqIHZlbFoUpCZTQ9m0W99TXHhoI5iH19lVPjEG+YPQ 0TX3l33xF7znpsYYCcfXxX/7UMpPvBBV0U2nLVm/8rlLJ59hMe5m7fdYfdXEiwL5 l3Nv15kvuTBMdfzQQTDLMTCBDEtM4kmCScRTTpAU3Ehfw1DvElRrY3aeuZb07qIf nwHgGwq8icWymyIoWaKFUOmRYdDe+v4wqr4CcRQr2/ZIjf/BSYpis1Qs5DhaumET l4kR1LfT8Y2eZFQDVCOMudE4AsNY/3P/qM0fQREnretXLEomgB3AhDeosIZU28Tx Cc1jp/LauF2vASEOwm1+b5Lxa652SuiMLxbjWSdhCZaRxHNhy17A0fjVoPJ1FZZ3 0AQMk3hP+Yat0xOqG62I24Z9d6T6188SetclQyBTVNPk1VArSiA= =yatA -----END PGP SIGNATURE----- --69pVuxX8awAiJ7fD--