From: Tom Lane <tgl@sss.pgh.pa.us>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Rethinking MemoryContext creation
Date: Mon, 11 Dec 2017 12:38:21 -0500
Message-ID: <16100.1513013901@sss.pgh.pa.us> (raw)
In-Reply-To: <CANP8+jKbqpygOjOj7ndFfy9FdbHraKXAWRyeGn8Df0vnD5xLTA@mail.gmail.com>
References: <2264.1512870796@sss.pgh.pa.us>
<9726.1513009650@sss.pgh.pa.us>
<CANP8+jKbqpygOjOj7ndFfy9FdbHraKXAWRyeGn8Df0vnD5xLTA@mail.gmail.com>
Simon Riggs <simon@2ndquadrant.com> writes:
> On 11 December 2017 at 16:27, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> For a *very* large majority of the callers of AllocSetContextCreate,
>> the context name is a simple C string constant, so we could just store
>> the pointer to it and save the space and cycles required to copy it.
> Why have the string at all in that case?
Try reading a MemoryContextStats dump without it ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, simon@2ndquadrant.com
Subject: Re: Rethinking MemoryContext creation
In-Reply-To: <16100.1513013901@sss.pgh.pa.us>
References: <2264.1512870796@sss.pgh.pa.us> <9726.1513009650@sss.pgh.pa.us> <CANP8+jKbqpygOjOj7ndFfy9FdbHraKXAWRyeGn8Df0vnD5xLTA@mail.gmail.com> <16100.1513013901@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox