Re: walsender: Assert MyReplicationSlot is set before use
| От | Fujii Masao |
|---|---|
| Тема | Re: walsender: Assert MyReplicationSlot is set before use |
| Дата | |
| Msg-id | CAHGQGwFYFgmfRBVkYcJen1AM-pA=iRDwGEhkwEVkz-2Wa8aEFw@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: walsender: Assert MyReplicationSlot is set before use (Chao Li <li.evan.chao@gmail.com>) |
| Ответы |
Re: walsender: Assert MyReplicationSlot is set before use
|
| Список | pgsql-hackers |
On Tue, Feb 3, 2026 at 12:38 PM Chao Li <li.evan.chao@gmail.com> wrote: > > I think we cannot assume the slot type here. A suitable checking might > > be: If a physical slot was acquired during logical replication, report an error, > > just like we do in StartReplication(). > > Good point. In StartReplication(), we check MyReplicationSlot is not logical, correspondingly, in StartLogicalReplication(),we should check MyReplicationSlot is not physical. StartLogicalReplication() calls CreateDecodingContext() after ReplicationSlotAcquire(), and CreateDecodingContext() seems to already perform this check. Isn't that sufficient? Regards, -- Fujii Masao
В списке pgsql-hackers по дате отправления: