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 1jM0ZZ-0000K6-7T for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 02:36:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM0ZY-0008Ho-1J for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 02:36:12 +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 1jM0ZX-0008Hh-QW for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2020 02:36:11 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0ZV-0003uX-JD for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2020 02:36:11 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 2F2246D9; Tue, 7 Apr 2020 22:36:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 07 Apr 2020 22:36:07 -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=9Tw9EC7RvvzXYeoH5zhZAvlSk4K VVzjVdB4hqhI5KOg=; b=RTmX/+tHVPwKtjkI6X509AXFX975QclhLonjSfZ2u3F bHzEej/yfW5DrBlgaMWtQTj3rstVTJbBcuO1iqI51Xgp7prSuqnrMm5pPR4zpfiX nhAaCGGJxgrrgTaaXTehYZcISkYI4JAw1TSUJ/SEjJaW9ShEhcV9jB+UI2W59SPE pKRzUvI2sJeNKxP4m8IQ9CpGIiqscH91loJskWSFc+XFUQsJMMBeRVCQZlUImhx4 23He1nA1Y3miY4Ap9qdnvSp+VOsJLUd3W90xAkBP2WSAnAN0pUFH/Xk/cxKIw/6h cboaA/GeJgjgUcZOZKKONPURca9Om3Ci2QSv2adRBHQ== 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=9Tw9EC 7RvvzXYeoH5zhZAvlSk4KVVzjVdB4hqhI5KOg=; b=hHrmYvcJkPN//vEksz+IqB M+gEttTYMb4JQiUt4kqh6bbwn2S5NE+LMQkc0HHZIlwlLm5ir+pcF6t/gLyP1KYT GsxyFLuyq8FsRjQLO30K+k+N1FQqd0tD1uIu0EfnKJnRG2LC5EsOqcTtCCmM+NpK ET1SGKNRqGOpCDqYOl0DgzAZQEbEYxvLHMVcpSXaoheqMuzIeKjxH2UbPvbOHSpQ AYjBB9io+TS+5Tw7/eweT3jd0oICwiGMxNFfOO4fjxvAiZWLdN9uwhdRBMc1/iYr 2yblZXZ/YG6GWb6q/iWfTArAi3faA7UTu8f2rU1cknBCpv6EaWeKR0x0N62kS7BQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdeiudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id C13793280067; Tue, 7 Apr 2020 22:36:04 -0400 (EDT) Date: Wed, 8 Apr 2020 11:36:02 +0900 From: Michael Paquier To: Andres Freund Cc: pgsql-hackers@lists.postgresql.org, Tom Lane , Alvaro Herrera , Kyotaro Horiguchi Subject: Re: pgsql: Allow users to limit storage reserved by replication slots Message-ID: <20200408023602.GF1606@paquier.xyz> References: <20200407232602.GA21559@alvherre.pgsql> <11206.1586308431@sss.pgh.pa.us> <6C515367-5BE9-4C9A-9F50-5DA9BC779E3B@anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eDB11BtaWSyaBkpc" Content-Disposition: inline In-Reply-To: <6C515367-5BE9-4C9A-9F50-5DA9BC779E3B@anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --eDB11BtaWSyaBkpc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 07, 2020 at 07:10:07PM -0700, Andres Freund wrote: > I have not looked at the source, but the error messages show LSNs > and bytes. I can't really imagine how that could be made stable. Another bad news is that this is page-size dependent. What if you removed pg_size_pretty() and replaced it with a condition that returns a boolean status in the result itself? -- Michael --eDB11BtaWSyaBkpc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6NOJIACgkQnvQgOdby QH32oQ//XOFU7f23C+/Q+w58onMDCFaUJwFVzyD7bzNhQRc2rn+KQQHBxM98OpmA jZhfccadz+fI5nB//nhGXp1OXAds3p2v3hPA9oLSFlG7UuUelCe0lL/DhFKM5/uo PJ1DJ0xrhmQ5EsPag9i2wSKuN8xhrMJH8iPuIwgcjXi7LAI7GUuxTJoeP2oojdB2 O9DjrhmzaMDLHXIgmBrI5m2NzRWB0JMvYeOstWchqx7NQCu1Z/+5fNv6pi3ijM5B UcxZ1Tr0cp9kN6elbtgxfoEpNry/pj8WX2cbqWxCeCu8vNfwN2z7Qn1vI6zOhTCp Vm3Om2drKjuZ8PPGcnRt0e/by14PwO7Xc/1Dq8cVD0437CfZKk00HXIi3OU31nib xjWZ56+5mO0ixKkYGQg3HBeMtQmWNg39T8Us8D7tJ7NixuU3oxuEhW7f1GF10qdB /l2nrwoY+0DrVhyBCNQB5z+R/CvQVneEnBAiE0GtOyXztC2fhQr51O/Q6PApqqDd dC96f6/gKnlhEYy/TtIBSHwCPufkZZ4rg7GJ0VQ3ygeNYgjcHOASgsPkTESR05GT PfwAziLbjFM3y+jPb+oR3AF10vhFB2ErLl10nnbr1GJlNKnoyMzO5FXF9da2Ps6P MV3ypQ8/HsTFvO94hiGE2qochHhdmAahgaPCrCEVEIOgmF55sRU= =QRTd -----END PGP SIGNATURE----- --eDB11BtaWSyaBkpc--