Re: Single transaction in the tablesync worker?
От | Peter Smith |
---|---|
Тема | Re: Single transaction in the tablesync worker? |
Дата | |
Msg-id | CAHut+PuX=gGvc3teEsiqxcWkFH0QgNhmgPEa7PaYGUL0mdNc7w@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Single transaction in the tablesync worker? (Amit Kapila <amit.kapila16@gmail.com>) |
Список | pgsql-hackers |
On Sun, Jan 31, 2021 at 12:19 AM Amit Kapila <amit.kapila16@gmail.com> wrote: > 2. In AlterSubscription_refresh(), we can't allow workers to be > stopped at commit time as we have already dropped the slots because > the worker can access the dropped slot. We need to stop the workers > before dropping slots. This makes all the code related to > logicalrep_worker_stop_at_commit redundant. @@ -73,20 +73,6 @@ typedef struct LogicalRepWorkerId Oid relid; } LogicalRepWorkerId; -typedef struct StopWorkersData -{ - int nestDepth; /* Sub-transaction nest level */ - List *workers; /* List of LogicalRepWorkerId */ - struct StopWorkersData *parent; /* This need not be an immediate - * subtransaction parent */ -} StopWorkersData; Since v23 removes that typedef from the code, don't you also have to remove it from src/tools/pgindent/typedefs.list? ---- Kind Regards, Peter Smith. Fujitsu Australia
В списке pgsql-hackers по дате отправления: