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 1iCvTT-0004Av-AQ for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 00:48:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCvTS-0001Gs-0A for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Sep 2019 00:48:06 +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 1iCvTQ-0001Gb-70 for pgsql-hackers@lists.postgresql.org; Wed, 25 Sep 2019 00:48:05 +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 1iCvTJ-0006IT-2e for pgsql-hackers@postgresql.org; Wed, 25 Sep 2019 00:48:03 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E4C5822283; Tue, 24 Sep 2019 20:47:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 24 Sep 2019 20:47:54 -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=fm2; bh=W/5TehYscQkbHOg8+ZZYE/HOqYo Hd84/n1Xn4GNRYME=; b=bs22F7mf/4kNJP+zud613s2NUg98J0DSVVEpKeZWFBb FXgk9m00KsIZzf03KofyHnS/u9AIZ3vz5m1bxeZgXlrpPv7VwmUyKprHwIsRlEit 3Bfln/+fAXL7x39oB2WYs7Qj3K+d/urqMVfHb/7a9AVqLwKJnUIvKDw2mgC/ftE8 7HbB7/lfbIatUEMdveW6tQrlrMkSJ7I5MKJdCAevUv63b+tbKBg+SkmIAaUFnvtY bJcDEm9O/LT+u2HDAx4hRXDYcElKgbqJLF2swYrh8zrf446fbj7m7tnSlDa+7EwU g9qHCezyTjWIUMarJP6ow0P224q/4gOL4xfR3WPas9A== 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=fm3; bh=W/5Teh YscQkbHOg8+ZZYE/HOqYoHd84/n1Xn4GNRYME=; b=X2l8TcWP/Ow1MsWazpoyKi IpmQhccp5uFlQujr8A1V2FEboKvKZ3A/bEcouknvdvKi+TH71VnE1CE31UJRwnvR BOWy9p6V2rABOdxEtynCUhdPYQa+hgURlnuHJZx4YLYk/wT9hyXF6aM6ZDJm9kEH EJ5SNZSLJRzhFqnIc/nSGU6hZcOt79vfdym5IosytwKuXO65RHK4scJvgwCg4ohB 5yqk8H314saXJDvt28a68TU9kyLDcB8do8bIN4PbZGX1XgOwTt9erpT0q/XEVmRy QsJ659fteTk1dkvLKa4aN/w1wnDIgmwabKo6kai+x1BkEqqg94pTFjwYKS2uLVAA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfedugdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd 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 0971AD6005E; Tue, 24 Sep 2019 20:47:47 -0400 (EDT) Date: Wed, 25 Sep 2019 09:47:35 +0900 From: Michael Paquier To: Tomas Vondra Cc: Melanie Plageman , Jeff Davis , Pg Hackers Subject: Re: Memory Accounting Message-ID: <20190925004735.GA1815@paquier.xyz> References: <027a129b8525601c6a680d27ce3a7172dab61aab.camel@j-davis.com> <20190724215228.tlyj74ie4l2jn7ji@development> <20190924052140.GA1982@paquier.xyz> <20190924115819.5u5i67add5evtea6@development> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20190924115819.5u5i67add5evtea6@development> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 24, 2019 at 02:05:51PM +0200, Tomas Vondra wrote: > The way I see it we can do either eager or lazy accounting. Eager might > work better for aggregates with many contexts, but it does increase the > overhead for the "regular" aggregates with just one or two contexts. > Considering how rare those many-context aggregates are (I'm not aware of > any such aggregate at the moment), it seems reasonable to pick the lazy > accounting. Okay. > So I think the approach Jeff ended up with sensible - certainly as a > first step. We may improve it in the future, of course, once we have > more practical experience. >=20 > Barring objections, I do plan to get this committed by the end of this > CF (i.e. sometime later this week). Sounds good to me. Though I have not looked at the patch in details, the arguments are sensible. Thanks for confirming. -- Michael --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2KuScACgkQnvQgOdby QH1IgQ/9ElsakB4ThhTol7jEDbkDVqNC4ozirbAI1MInr3RPTtbkZftgrCy2vOwx SQKL1+2L/JiNG1YWsCl3su7C3fWnCldInPUiyJ+dpIyfmqdON6RutpENxpfjqUo8 bkQTLLhFbmtQiUwvbyRzNeg4/g30xOr47qH2oTRmDHPypIhg414LTam3IxbNmfB+ kR8HpID4fKOgqdbQFkdkDhSDK1akbRy92RlNhy7B3VLQZ2lQi0/m/2pwOWjoaV+A 72W7lby/Vd/J2VItuPBb+Wr1Zbw6RqEtZdfTur0wvWl3Yjle2TwoxolJqF/nSy4Y aNt9n85gK+LrVA5cvi82v9V15YIjKskiLAA9xv5+JDIIMamFsPyrL5nwCOdKznIa NCcOYNGIHykglZw6QIcD3J+PREMx4dWI2gSUxXAkOP69EOgVFT/2l00Xr7XSCLNg qpB1yB+rYiOUtGWZEHnBMRhMYS1CfPL4rBUTbyjB8YZ+cTSr+eDZsIWXJMnFSve/ /bNsTP48ozIM9DVifymXe6CZmr0SWHbZDlCLyFhdMYLqEaeLaMqq8tWsPQ0GpviM 3gx3HF384+REPNV0UlxmE0xDCgxo8sRrTi49l0CNvBOMVY2imTIRNbeyHHXOwd9w f9XMfDlMIJuTn9WIPQXYp4CxnadCRq9EcRnvRBtEdz2TybHUv0A= =CXSi -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy--