Re: Adding a LogicalRepWorker type field
От
Peter Smith
Тема
Re: Adding a LogicalRepWorker type field
Дата
Msg-id
CAHut+PvsLw4xO=8sLqQO4a3zgJyJkyt0uVycbw_uyXDXr2m8Vw@mail.gmail.com
Ответ на
Re: Adding a LogicalRepWorker type field (Amit Kapila)
Список
Дерево обсуждения
Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Masahiko Sawada <sawada.mshk@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Melih Mutlu <m.melihmutlu@gmail.com>
Re: Adding a LogicalRepWorker type field Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field shveta malik <shveta.malik@gmail.com>
RE: Adding a LogicalRepWorker type field "Zhijie Hou (Fujitsu)" <houzj.fnst@fujitsu.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
Re: Adding a LogicalRepWorker type field Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Adding a LogicalRepWorker type field Amit Kapila <amit.kapila16@gmail.com>
Re: Adding a LogicalRepWorker type field Peter Smith <smithpb2250@gmail.com>
On Mon, Jul 31, 2023 at 11:11 PM Amit Kapila wrote:
>
> +1. BTW, do we need the below functions (am_tablesync_worker(),
> am_leader_apply_worker()) after this work?
> static inline bool
> am_tablesync_worker(void)
> {
> - return OidIsValid(MyLogicalRepWorker->relid);
> + return isTablesyncWorker(MyLogicalRepWorker);
> }
>
> static inline bool
> am_leader_apply_worker(void)
> {
> - return (!am_tablesync_worker() &&
> - !isParallelApplyWorker(MyLogicalRepWorker));
> + return isLeaderApplyWorker(MyLogicalRepWorker);
> }
>
The am_xxx functions are removed now in the v2-0001 patch. See [1].
The replacement set of macros (the ones with no arg) are not strictly
necessary, except I felt it would make the code unnecessarily verbose
if we insist to pass MyLogicalRepWorker everywhere from the callers in
worker.c / tablesync.c / applyparallelworker.c.
------
Kind Regards,
Peter Smith.
Fujitsu Australia
В списке pgsql-hackers по дате отправления
От: David G. Johnston
Дата: