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 1llRSm-0007EY-QD for pgsql-hackers@arkaria.postgresql.org; Tue, 25 May 2021 07:26:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1llRSl-00081h-DP for pgsql-hackers@arkaria.postgresql.org; Tue, 25 May 2021 07:26:51 +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 1llRSl-00081Y-5W for pgsql-hackers@lists.postgresql.org; Tue, 25 May 2021 07:26:51 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llRSj-0001hE-3R for pgsql-hackers@postgresql.org; Tue, 25 May 2021 07:26:50 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D09435C006D; Tue, 25 May 2021 03:26:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 25 May 2021 03:26:47 -0400 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=fm1; bh=fkJIvxjp4IN8oc7MX7XW3CY976C uWH65X+hf0Uaow+c=; b=ZshAxpqFzP4CdfxZCEUp1Oxz2p6P3D9hCDwi0yPJl2A h+gh436xOsCRU8yeX/u5mWjXX4k3AnGTuiSuI+uR1441NU3o4tXr6HAbLgCbSUaK tN0ZshyfQoI5Vokrwm7h+pTSFV1UHF9/68TQpRLhJ0wCGakTsd0SOawy8zlplYJB BrgxyG/6aPhh9Vs34EaVGtcyX9ltr7htAFyReTXCLSiKAx3fR/tPqMlh1h+pR+6Q yCZPCZW4dMrueBVgzWyPccpXc01TGalDbkkE0KKFEIJft1A/N+XODD4hZ5O8Mg16 2h2fHpUl5eZ867mcsBuTjUZUrJVmRgxY4dJndlozKDQ== 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=fm2; bh=fkJIvx jp4IN8oc7MX7XW3CY976CuWH65X+hf0Uaow+c=; b=BKA7OcqKFIjfj6PjOrNOiX Pj78PKZcAcN3Mx92w0dQmgOhXjzkul9yBMTZI5iAX8cUpfMT/d4+0G+tBjY9M5gj uGuw8sgun1/eAtiVewQezbeMRo4fFKp+fP+4bAPmFTwfd5dX8auPxGnn8NEIeCJu YpxvWiXF0xaTGrvPJWKC5VAFN2JULxfCdPLQNr/uCUWQZFoPl5Yh4BRvXt8WgRuQ Rb6swEDMVa92HRMSZzd1LnG29oxr3Tkb4P5YHdX1QZsfq6lvDueu6nSs96my9xN7 TmCP6VA90Y7ZVWMTuHJY1BD5HW/mUeLUiN3UjuMOfLk8JiE0/hzciqjaD2xkqYiw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdektddguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveej heehieevueeigeelteegleejleeiueeiheegvefhnecukfhppeduuddurddutddvrdduke dtrddukeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 May 2021 03:26:45 -0400 (EDT) Date: Tue, 25 May 2021 16:26:42 +0900 From: Michael Paquier To: Justin Pryzby Cc: Andrey Borodin , pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: Different compression methods for FPI Message-ID: References: <20210312074547.GQ8796@telsasoft.com> <20210313012820.GJ29463@telsasoft.com> <20210315003135.GL29463@telsasoft.com> <20210315180918.GW29463@telsasoft.com> <20210321193004.GA4203@telsasoft.com> <20210519030618.GS373@telsasoft.com> <20210525044444.GV3676@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cpeMVHN94x3lMAfz" Content-Disposition: inline In-Reply-To: <20210525044444.GV3676@telsasoft.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --cpeMVHN94x3lMAfz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 24, 2021 at 11:44:45PM -0500, Justin Pryzby wrote: > The goal is to support 2+ "methods" (including "none"), which takes 4 bit= s, so > may as well support 3 methods. >=20 > - uncompressed > - pglz > - lz4 > - zlib or zstd or ?? Let's make a proper study of all that and make a choice, the only thing I am rather sure of is that pglz is bad compared to all the others. There is no point to argue as long as we don't know if any of those candidates are suited for the job. > This version: > 0) repurposes the pre-existing GUC as an enum; > 1) saves a bit (until zstd is included); > 2) shows the compression in pg_waldump; >=20 > To support different compression levels, I think I'd change from an enum = to > string and an assign hook, which sets a pair of ints. Hmm. I am not really sure what you mean here, but let's keep that in mind until we get more performance numbers. -- Michael --cpeMVHN94x3lMAfz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmCsprIACgkQnvQgOdby QH1ZRQ/+OXj22MG+sKtxJqfxGfsR6r9I9WVVx9Qszm+xmietJYmwcPd0QY/xAGgd qld+Ogwz4ln298hxJobfh81C3aiBfIeXzUjVmpw0nbhX9FXWraf0n1JunCOzXET8 Zgu4ziu3aAXa1Oyd85HDXcjo8qjUkybLCMqBVb+mH3a40/GZWvWn17QGiDi4499d gM+CJ1ZmXBe+IZVhbjqM26qCry/We0JZToBW3phbm3LyjiNaaE7V1iFjrZOgIl9J 5oLMHOI8zLtspMP5m2393b+ywp2pXWXQKYw/S/UAGGkYPXgq6RU2NxZM7v8lwdyy /fjUBtmS3j3srTAAVCG6Kc6gNtJSnBb35ALOE3/92R5/6wvTX5WueI0Ishes8aEF mGPDE9cyh9RsnhUaO/hbhja8whl48qJNJzeTPWWReZDak2Kae/IBQWoHntZ2ENIb ui26vWwLqLI5G+yqZlbEWEnzCbKz5RutpGoQY8QLfXnT3r6KJMgrSpcOhD9Jy4Vw 82jxfvKh/a5AZwVIUafXrMKk8U4skXnOL8jheRsWWuxuDqSK+jyxb1L/A/i5I6Xj jSy6iUD6lvc14RTw57HcdpG5dspcC+i6qZtQPZYjoMBlr/5xrJEqH2c4iF6WrNVd aiRNAETs2yeLpM0Ft+bLb/djDbYkTNO5s2T8Ce5PXCWJLf5WGbA= =XNYz -----END PGP SIGNATURE----- --cpeMVHN94x3lMAfz--