Re: [COMMITTERS] pgsql: Introduce dynamic shared memory areas.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Introduce dynamic shared memory areas.
Date: 2016-12-05 20:14:01
Message-ID: CA+TgmoZc0Qe1L1ShPNcwhZXbn5Xat=JMadpvzKULhshq5YAdbA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Mon, Dec 5, 2016 at 2:32 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On Mon, Dec 5, 2016 at 1:08 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> Also, given that the idea of
>>> DSA seems to be to support a number of different use-cases, I'm not
>>> sure that it's useful to have a knob that limits the total consumption
>>> rather than individual areas. IOW: who exactly is going to call
>>> dsa_set_size_limit, and on what grounds would they compute the limit?
>
>> The code that creates the DSA is going to call it.
>
> Ah, I misunderstood: from the name of the field and the way you'd
> described it, I thought it was a limit on the total space used across
> all DSAs. A per-DSA limit does make sense.

OK, good. I was rather puzzled as to how that didn't seem like a good
thing to have available. I'm going to go change SIZE_MAX to (Size) -1
now and we can decide later if something else should be done.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-12-05 20:22:45 pgsql: dsa: Cope with the possibility that SIZE_MAX is not defined.
Previous Message Tom Lane 2016-12-05 19:32:40 Re: [COMMITTERS] pgsql: Introduce dynamic shared memory areas.

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2016-12-05 20:14:02 Re: Separate connection handling from backends
Previous Message Robert Haas 2016-12-05 20:12:30 Re: Creating a DSA area to provide work space for parallel execution