Re:

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Loles <lolesft(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re:
Date: 2021-05-17 14:12:48
Message-ID: CAFiTN-vDHFmDXfXWkxrsk_i=L4-LRhe7RjA2NmPFAPhzZ+h84g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, May 17, 2021 at 7:37 PM David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
>
> On Monday, May 17, 2021, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>
>> "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
>> > On Sunday, May 16, 2021, Loles <lolesft(at)gmail(dot)com> 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

In response to

  • Re: at 2021-05-17 14:07:39 from David G. Johnston

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-05-17 14:13:10
Previous Message David G. Johnston 2021-05-17 14:07:39 Re: