pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Robert Haas <robertmhaas@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Peter Geoghegan <pg@heroku.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: David Rowley <david.rowley@2ndquadrant.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: Rename max_parallel_degree?
Date: Fri, 30 Sep 2016 18:23:25 +0200
Message-ID: <699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com> (raw)
In-Reply-To: <CA+TgmoZnvCbe6L4OHd2BFPGm711=9LCn+Uo3-BXOKKr+rLMU_A@mail.gmail.com>
References: <20160426152217.GA548975@alvherre.pgsql>
	<f3421024-c236-a728-4cb4-38404b69bc9f@dalibo.com>
	<CAA4eK1KZh_qDtZJALYY9oDHjzAKYJAZsqwOXNTiL91WFDSFhzg@mail.gmail.com>
	<9f84548d-8b59-b5c8-510d-991f8ee3ab20@dalibo.com>
	<CAA4eK1+4uvbf6gefPEhXMD40R_Q+qDfBGw9SGHWMkqxszx+=tA@mail.gmail.com>
	<20312f33-c14e-0d3f-a79f-95212f64a38c@dalibo.com>
	<CAA4eK1J8HodZYEKkUYdbxZb-_-d_uw+EzEUKy9WJuDYy6nGh8w@mail.gmail.com>
	<CA+TgmoZWstza-3o9jtqoNUaQRgU-QDHNFtgmC27iEKfKVBiRRg@mail.gmail.com>
	<9a3ca4ad-c3ea-2c02-499a-029e053fedda@dalibo.com>
	<CA+TgmoZmfYXrVwZ5+gU9tpaC7+oicoCBuSUySHs_1esWk0sqaA@mail.gmail.com>
	<cefbe923-1e1c-c61f-a690-ab7f8a76c592@2ndquadrant.com>
	<CA+TgmoYbZO0rM8ystcf-ZxWCEBAdJg1vjETpXu+m+a0uX_STLg@mail.gmail.com>
	<7ef3a740-8c64-764d-9f02-b27132d89602@2ndquadrant.com>
	<CA+TgmoaBbJjPJgAbW_h_UeKGd22mVKgbmsrw+mFcwfNWWkcCBQ@mail.gmail.com>
	<fafae3c0-becb-95cd-617c-cbdde3627028@2ndquadrant.com>
	<CA+TgmoZnvCbe6L4OHd2BFPGm711=9LCn+Uo3-BXOKKr+rLMU_A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 23/09/2016 21:10, Robert Haas wrote:
> On Fri, Sep 23, 2016 at 8:54 AM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> wrote:
>> On 9/20/16 4:07 PM, Robert Haas wrote:
>>> No, I'm assuming that the classes would be built-in.  A string tag
>>> seems like over-engineering to me, particularly because the postmaster
>>> needs to switch on the tag, and we need to be very careful about the
>>> degree to which the postmaster trusts the contents of shared memory.
>>
>> I'm hoping that we can come up with something that extensions can
>> participate in, without the core having to know ahead of time what those
>> extensions are or how they would be categorized.
>>
>> My vision is something like
>>
>> max_processes = 512  # requires restart
>>
>> process_allowances = 'connection:300 superuser:10 autovacuum:10
>> parallel:30 replication:10 someextension:20 someotherextension:20'
>> # does not require restart
> 
> I don't think it's going to be very practical to allow extensions to
> participate in the mechanism because there have to be a finite number
> of slots that is known at the time we create the main shared memory
> segment.
> 
> Also, it's really important that we don't add lots more surface area
> for the postmaster to crash and burn.
> 

It seems that there's no objection on Robert's initial proposal, so I'll
try to implement it.

I've already fixed every other issues mentioned upthread, but I'm facing
a problem for this one.  Assuming that the bgworker classes are supposed
to be mutually exclusive, I don't see a simple and clean way to add such
a check in SanityCheckBackgroundWorker().  Am I missing something
obvious, or can someone give me some advice for this?

-- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (185+ messages)  latest in thread

Message-ID: <699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com>
Permalink:  ../699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com/
Also on:    postgresql.org/message-id/699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com

 · 

reply

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: julien.rouhaud@dalibo.com, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com, amit.kapila16@gmail.com, tgl@sss.pgh.pa.us, josh@agliodbs.com, david.g.johnston@gmail.com, pg@heroku.com, noah@leadboat.com, david.rowley@2ndquadrant.com, alvherre@2ndquadrant.com, magnus@hagander.net, bruce@momjian.us
  Subject: Re: Rename max_parallel_degree?
  In-Reply-To: <699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com>
  References: <20160426152217.GA548975@alvherre.pgsql> <CAA4eK1KZh_qDtZJALYY9oDHjzAKYJAZsqwOXNTiL91WFDSFhzg@mail.gmail.com> <9f84548d-8b59-b5c8-510d-991f8ee3ab20@dalibo.com> <CAA4eK1+4uvbf6gefPEhXMD40R_Q+qDfBGw9SGHWMkqxszx+=tA@mail.gmail.com> <20312f33-c14e-0d3f-a79f-95212f64a38c@dalibo.com> <CAA4eK1J8HodZYEKkUYdbxZb-_-d_uw+EzEUKy9WJuDYy6nGh8w@mail.gmail.com> <CA+TgmoZWstza-3o9jtqoNUaQRgU-QDHNFtgmC27iEKfKVBiRRg@mail.gmail.com> <9a3ca4ad-c3ea-2c02-499a-029e053fedda@dalibo.com> <CA+TgmoZmfYXrVwZ5+gU9tpaC7+oicoCBuSUySHs_1esWk0sqaA@mail.gmail.com> <cefbe923-1e1c-c61f-a690-ab7f8a76c592@2ndquadrant.com> <CA+TgmoYbZO0rM8ystcf-ZxWCEBAdJg1vjETpXu+m+a0uX_STLg@mail.gmail.com> <7ef3a740-8c64-764d-9f02-b27132d89602@2ndquadrant.com> <CA+TgmoaBbJjPJgAbW_h_UeKGd22mVKgbmsrw+mFcwfNWWkcCBQ@mail.gmail.com> <fafae3c0-becb-95cd-617c-cbdde3627028@2ndquadrant.com> <CA+TgmoZnvCbe6L4OHd2BFPGm711=9LCn+Uo3-BXOKKr+rLMU_A@mail.gmail.com> <699e9156-fb30-7a6d-0f5f-b78b97ddce14@dalibo.com>

* 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