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.94.2) (envelope-from ) id 1qj9VC-009V3Y-QV for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2023 02:33:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qj9VB-0059UM-0q for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2023 02:33:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qj9V9-0059Tn-ET for pgsql-hackers@lists.postgresql.org; Thu, 21 Sep 2023 02:33:12 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qj9V5-006RAy-HS for pgsql-hackers@lists.postgresql.org; Thu, 21 Sep 2023 02:33:10 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 526155C0156; Wed, 20 Sep 2023 22:33:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 20 Sep 2023 22:33:04 -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:sender :subject:subject:to:to; s=fm2; t=1695263584; x=1695349984; bh=34 /WfgCNFRiMY0QEyuxCbx20iLXDi8pTLYYTwjxJZns=; b=GT99S8GGXNWLzCXCG4 tlm/q8Gt+e7CX4M3vPp/iTBSbWzumTEOuTltWqP3gNnUmfz7FRkQ6XIVmthMEvP7 BuC1gRAI5VHUegOwtPL2GhH1CVLArlg2jbNg4yKuBdIpE/0RZDmTfAu0GZ5h8gek q1RE+OUc3QnDsCfj+omIIYk9F9QXa0M5ApadsHIoQs86XqK1Y6HQCpbzbIWyQUKc bHkJypENp3TMtJm/rQHviq+H8yTLdih3yMlO7WTobGCXOSQcAbIofTZIvwIJo0mE R/laf8NTZOB3YR7ACCCsBGQS/jTZ/J9FRzLu506DNQ4F+Hbg9Czrg96XDaz+VfLw +gPQ== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695263584; x=1695349984; bh=34/WfgCNFRiMY 0QEyuxCbx20iLXDi8pTLYYTwjxJZns=; b=etgc6Ns+FewhMQMl8dy6ov326t3HD pUa1k1zSAycegTGdC6PqUay7Qm2AQ8LEslSPgC7N7BOCXi1jvJOYjbvjjr6fvWe+ 4MIaNXWGVSMuNAnn6c5gK5aoTdPvNwBdSSRfy8cPu0QqmDiZqd2T9TkoByUvsdM+ 1tcFOX+1f45/MaOpr6Hifye9hveMPUN3sMBlRfm38srol0sOpuyQPXHaEA5SjxIc itWZcO8t1qcRsV1eBvsPkYRKuaVo8A9kRpQ49aCmlNndAgiSl1ZFz+iqtFFlBcX0 30vM4k9Zb65L+N3BTNpbXKFZYlDCjKhTyXCoMzmStapJzKEEyjwOkiJpw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudekgedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepteelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdej necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitg hhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 20 Sep 2023 22:33:02 -0400 (EDT) Date: Thu, 21 Sep 2023 11:32:57 +0900 From: Michael Paquier To: Ryoga Yoshida Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Bug fix in vacuumdb --buffer-usage-limit xxx -Z Message-ID: References: <08930c0b541700a5264e5fbf3a685f5a@oss.nttdata.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dlJFgKwXYTwbJERS" Content-Disposition: inline In-Reply-To: <08930c0b541700a5264e5fbf3a685f5a@oss.nttdata.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --dlJFgKwXYTwbJERS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 21, 2023 at 10:44:49AM +0900, Ryoga Yoshida wrote: > When --buffer-usage-limit option is specified, vacuumdb issues VACUUM or > VACUUM ANALYZE command with BUFFER_USAGE_LIMIT option. Also if > --buffer-usage-limit and -Z options are specified, vacuumdb should issue > ANALYZE command with BUFFER_USAGE_LIMIT option. But it does not. That is, > vacuumdb -Z seems to fail to handle --buffer-usage-limit option. This see= ms > a bug. >=20 > You can see my patch in the attached file and how it works by adding -e > option in vacuumdb. Good catch, indeed the option is missing from the ANALYZE commands built under analyze_only. I can also notice that we have no tests for this option in src/bin/scripts/t checking the shape of the commands generated. Could you add something for ANALYZE and VACUUM? The option could just be appended in one of the existing cases, for instance. -- Michael --dlJFgKwXYTwbJERS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmULq1kACgkQnvQgOdby QH1Y6g/9E4EY+OirhqEhx/ybZKRwHuqJpn3oc5T2vPtMDw+Rn8I5OdKcAP85UoOY Kx1IsI947T1rE5305bB+91hZ+4HR8RvpNQoPSMTvOZDmb1ymGI5hWvkJFohHe+wI EsAb4KdUeZPmmhaQ7zUC7QOAE9897gmehpOIzyXvIT2gkEEJpu5twMsdS/dpw2zR sO1gdFhOPYuVi71MuIl90Gd5fhJvbSOVj4nmWBcJeqTBMi5jTaOEgG1H9O4eEwRn +Dj1cAlcDr2F8dUWfoILeH6whDaLM+EVEsBRs/WsftxPns0MbNJaIvegWnZ1CfZJ YK08/0qJwCqwtpXacqERlDk/pJPyCT3b7fQTrHltg+eTTzZrgPPyQSDLGnBHleSH sE/nqoUvsCwgzWuATun83aIYGVS0dbc3RE0L2ktjX/QgW8f6JLZgpU6IHfsuBmg+ Y3pvUfWjckNcMktYOHV3RUF6WvPBOqZgv/fplC+0qGdZExrcFSVj4ZyyyJEECE6c N3L8YRoSRh2v4EZ+kjELnP3rg5KKR0kPm9e4Qx46GDBwSVfmt21ZebJi+4aLmwPy 9ad8pyq2pArR1vnbJtAm39GqrzFOCRSVDesRI3P8OJZ0xME9VO9BetNHmEL/OBi5 71Hh8nFlubcppz9kw8DD3NEmlgjEf8jvbb2x4CkQNRTKaiPNSGw= =QisO -----END PGP SIGNATURE----- --dlJFgKwXYTwbJERS--