pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Julien Rouhaud <julien.rouhaud@dalibo.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: Mon, 24 Oct 2016 16:04:24 -0400
Message-ID: <ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.com> (raw)
In-Reply-To: <CA+Tgmoahd_j_T4MMzezMjB2=FZCig36MBYjWEz=+2UaKsOsyUA@mail.gmail.com>
References: <20160426152217.GA548975@alvherre.pgsql>
	<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>
	<CA+TgmoZn36gvzH44Vt1ET069qRBsYOeG5HbokyFCBhUZ5AJ8iQ@mail.gmail.com>
	<b7aa59b7-4d35-c5fe-a0c2-9041ca297f40@dalibo.com>
	<243bd031-771f-d84c-72d7-96f62e97042d@2ndquadrant.com>
	<CA+Tgmoahd_j_T4MMzezMjB2=FZCig36MBYjWEz=+2UaKsOsyUA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 10/12/16 7:58 PM, Robert Haas wrote:
> I don't think it's wrong that the handling is done there, though.  The
> process that is registering the background worker is well-placed to
> check whether there are already too many, and if it does not then the
> slot is consumed at least temporarily even if it busts the cap.  On
> the flip side, the postmaster is the only process that is well-placed
> to know when a background worker terminates.  The worker process
> itself can't be made responsible for it, as you suggest below, because
> it may never even start up in the first place (e.g. fork() returns
> EAGAIN).  And the registering process can't be made responsible,
> because it might die before the worker.

Those are valid technical points.  I have not worked out any alternatives.

I'm concerned that all this makes background workers managed by
extensions second-class citizens.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
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: <ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.com>
Permalink:  ../ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.com/
Also on:    postgresql.org/message-id/ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.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: peter.eisentraut@2ndquadrant.com, robertmhaas@gmail.com, julien.rouhaud@dalibo.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: <ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.com>
  References: <20160426152217.GA548975@alvherre.pgsql> <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> <CA+TgmoZn36gvzH44Vt1ET069qRBsYOeG5HbokyFCBhUZ5AJ8iQ@mail.gmail.com> <b7aa59b7-4d35-c5fe-a0c2-9041ca297f40@dalibo.com> <243bd031-771f-d84c-72d7-96f62e97042d@2ndquadrant.com> <CA+Tgmoahd_j_T4MMzezMjB2=FZCig36MBYjWEz=+2UaKsOsyUA@mail.gmail.com> <ac601d90-0a3f-5307-7132-bdf934712cce@2ndquadrant.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