Re: Adding a LogicalRepWorker type field
Amit Kapila <amit.kapila16@gmail.com>
From: Amit Kapila <amit.kapila16@gmail.com>
To: Peter Smith <smithpb2250@gmail.com>
Cc: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-08-11T09:33:44Z
Lists: pgsql-hackers
Attachments
- v6-0001-Simplify-determining-logical-replication-worker-t.patch (application/octet-stream) patch v6-0001
On Thu, Aug 10, 2023 at 7:50 AM Peter Smith <smithpb2250@gmail.com> wrote: > > > > > * If you do the above then there won't be a need to change the > > variable name is_parallel_apply_worker in logicalrep_worker_launch. > > > > Done. > I don't think the addition of two new macros isTablesyncWorker() and isLeaderApplyWorker() adds much value, so removed those and ran pgindent. I am planning to commit this patch early next week unless you or others have any comments. -- With Regards, Amit Kapila.
Commits
-
Simplify the logical worker type checks by using the switch on worker type.
- 1cdc6d86bfc3 17.0 landed
-
Simplify determining logical replication worker types.
- 2a8b40e36819 17.0 landed