Re: fix bgworkers in EXEC_BACKEND - Mailing list pgsql-hackers

From Tom Lane
Subject Re: fix bgworkers in EXEC_BACKEND
Date
Msg-id 16979.1356635291@sss.pgh.pa.us
Whole thread Raw
In response to Re: fix bgworkers in EXEC_BACKEND  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
Stephen Frost <sfrost@snowman.net> writes:
> Simon,
> * Simon Riggs (simon@2ndQuadrant.com) wrote:
>> I admire your forward thinking on that; yes, that could cause
>> problems. But even then, we would be admitting that nobody now gets a
>> valid value of MaxBackends, which sounds like it might be a problem in
>> itself.

> I agree that the current implementation could lead to problems/confusion
> for contrib module authors, if they're doing something with MaxBackends.

This is more or less a necessary consequence of the fact that _init
functions are now allowed to add background workers.  If there is any
code today that expects MaxBackends to be correct at
preload_shared_libraries time, it's already been broken irretrievably
by the bgworkers patch; and we'd be well advised to make that breakage
obvious not subtle.

So I'm +1 for Heikki's proposal as well.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: fix bgworkers in EXEC_BACKEND
Next
From: Alvaro Herrera
Date:
Subject: Re: fix bgworkers in EXEC_BACKEND