Re:

Поиск
Список
Период
Сортировка
От Dilip Kumar
Тема Re:
Дата
Msg-id CAFiTN-vDHFmDXfXWkxrsk_i=L4-LRhe7RjA2NmPFAPhzZ+h84g@mail.gmail.com
обсуждение исходный текст
Ответ на Re:  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
On Mon, May 17, 2021 at 7:37 PM David G. Johnston
<david.g.johnston@gmail.com> wrote:
>
> On Monday, May 17, 2021, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>
>> "David G. Johnston" <david.g.johnston@gmail.com> writes:
>> > On Sunday, May 16, 2021, Loles <lolesft@gmail.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
thoughadmittedly 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



В списке pgsql-general по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re:
Следующее
От: Tom Lane
Дата:
Сообщение: