Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRWQr-0007Co-92 for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 01:43:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YRWQq-0007Mw-Oh for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 01:43:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRWQp-0007Mn-Gz for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 01:43:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRWQi-0001Gy-3k for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 01:43:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t1S1gmUO029788; Fri, 27 Feb 2015 20:42:48 -0500 From: Tom Lane To: Jeff Davis cc: pgsql-hackers@postgresql.org, Andres Freund , Tomas Vondra Subject: Re: Re: [COMMITTERS] pgsql: Invent a memory context reset/delete callback mechanism. In-reply-to: <1425086819.12308.273.camel@jeff-desktop> References: <1425086819.12308.273.camel@jeff-desktop> Comments: In-reply-to Jeff Davis message dated "Fri, 27 Feb 2015 17:26:59 -0800" Date: Fri, 27 Feb 2015 20:42:47 -0500 Message-ID: <29787.1425087767@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Jeff Davis writes: > On Fri, 2015-02-27 at 22:17 +0000, Tom Lane wrote: >> In passing, per discussion, rearrange some boolean fields in struct >> MemoryContextData so as to avoid wasted padding space. For safety, >> this requires making allowInCritSection's existence unconditional; >> but I think that's a better approach than what was there anyway. > I notice that this uses the bytes in MemoryContextData that I was hoping > to use for the memory accounting patch (for memory-bounded HashAgg). Meh. I thought Andres' complaint about that was unfounded anyway ;-). But I don't really see why a memory accounting patch should be expected to have zero footprint. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers