Search Postgresql Archives

Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 17, 2021 at 7:37 PM David G. Johnston
<david.g.johnston@xxxxxxxxx> wrote:
>
> On Monday, May 17, 2021, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
>>
>> "David G. Johnston" <david.g.johnston@xxxxxxxxx> writes:
>> > On Sunday, May 16, 2021, Loles <lolesft@xxxxxxxxx> wrote:
>> >> I don't understand why the server starts that process if I'm not using
>> >> replication of any kind.
>>
>> >  It starts the process because at any time someone can execute a “create
>> > subscription” command.  If no one does so the amount of time spent
>> > confirming the subscriptions table is empty is trivial.
>>
>> It looks like it won't be started if you set
>> max_logical_replication_workers = 0.
>>
>
> I was wondering about that.  Would you mind posting a link to the code where that is checked?  I actually looked though admittedly not that hard.
>

/*
* ApplyLauncherRegister
* Register a background worker running the logical replication launcher.
*/
void
ApplyLauncherRegister(void)
{
BackgroundWorker bgw;

if (max_logical_replication_workers == 0)
return;


-- 
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux