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 1lZJSZ-0000Wv-Di for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 20:28:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZJSY-00034N-CQ for pgsql-hackers@arkaria.postgresql.org; Wed, 21 Apr 2021 20:28:30 +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 1lZJSY-00034G-5Q for pgsql-hackers@lists.postgresql.org; Wed, 21 Apr 2021 20:28:30 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lZJSW-00024I-72 for pgsql-hackers@postgresql.org; Wed, 21 Apr 2021 20:28:29 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id C5F945F799; Wed, 21 Apr 2021 16:28:26 -0400 (EDT) Date: Wed, 21 Apr 2021 16:28:26 -0400 From: Stephen Frost To: Andres Freund Cc: Tom Lane , Magnus Hagander , Jehan-Guillaume de Rorthais , Robert Haas , Thomas Munro , "pgsql-hackers@postgresql.org" Subject: Re: when the startup process doesn't Message-ID: <20210421202826.GS20766@tamriel.snowman.net> References: <20210420171720.56599607@firost> <631849.1618942988@sss.pgh.pa.us> <20210420185150.GL20766@tamriel.snowman.net> <633337.1618945018@sss.pgh.pa.us> <20210420203642.nvxvolm37f2k6prj@alap3.anarazel.de> <20210421183624.GP20766@tamriel.snowman.net> <20210421193605.cubavrq7q5bqkf4i@alap3.anarazel.de> <20210421195138.GQ20766@tamriel.snowman.net> <20210421200032.ojzbrbdhrqw7nroa@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n/706jTsmgwx7ZZI" Content-Disposition: inline In-Reply-To: <20210421200032.ojzbrbdhrqw7nroa@alap3.anarazel.de> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --n/706jTsmgwx7ZZI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Andres Freund (andres@anarazel.de) wrote: > On 2021-04-21 15:51:38 -0400, Stephen Frost wrote: > > It does seem like we have some trade-offs here to weigh, but > > pg_control is indeed quite small.. >=20 > What do you mean by that? That the overhead of writing it out more > frequently wouldn't be too bad? Or that we shouldn't "unnecessarily" add > more fields to it? Mostly just that the added overhead in writing it out more frequently wouldn't be too bad. Adding fields runs the risk of crossing the threshold where we feel that we can safely assume all of it will make it to disk in one shot and therefore there's more reason to not add extra fields to it, if possible. Seems the missing bit here is "how often, and how do we make that happen?" and then we can discuss if there's reason to be concerned that it would be 'too frequent' or cause too much additional overhead in terms of IO/fsyncs. Thanks, Stephen --n/706jTsmgwx7ZZI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJggIrqAAoJEO1sijiDR2RVmJsP/0N0iOg201FunuJdk6Ot8QJy 09H3JMNseC/8iLYMQUqBSy/7Akn6On5M8wPoubzEcPv276vzKaOO+42xCJ91kTbo sdhFiLeURXwX5TIMG5lZR8AP9FDWPnacGyJ47jyFJdqudZobgahLtusqG3qNdgmo Af2yOyBxA2Af0Zwnj6aAKbpvylSMsr78fLz6iu1l8M6/HLt+cihoa90K7UFVnIIN 42ayZWIrT8SWKIHfHLpn93CwfFLKEgmvvf7BqivHIknFaD4vvyyRVlgreEts4YoG tCgex+v4SFv2CxJSdyNnriVKcQtib3XLKNLisa0905q0Sykb0PydWgaDwakIYrxA frSM9hoqbd+cQioXgrdzwh//3O0EoBzY7Salj9kY65R+Mlh42AhexweqDGNX2TGq CZO8RtE+usGjb/2NG54lpfz3s9cRFiV3LoUrwQN/U0cpQ8XfgoLvituTiYSnSZro VRlmDsOaElV2RQ5XMUTQ2Xih9WAw+aiY2pqXHBfmTN2oRGtrN0i2cpfKn8dO39ym Ft3dKmPoRQnWWea4ojZyXJ56oyp1v7xS/ek+wUkwXJxKGkYKVJMVbbTkRGsk8mwS xCt+pts1G+rfUar+TAbFsad7kn4hl/j0iXw47GIzUZxIBMFJhcJX/oQETdNyUrFD Oi4mgmBv7MYmuR1OAR8M =X0Tu -----END PGP SIGNATURE----- --n/706jTsmgwx7ZZI--