git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3d8d217) | patch
Simplify determining logical replication worker types.
2023年8月14日 03:08:03 +0000 (08:38 +0530)
2023年8月14日 03:08:03 +0000 (08:38 +0530)
commit 2a8b40e3681921943a2989fd4ec6cdbf8766566c
Simplify determining logical replication worker types.

We deduce a LogicalRepWorker's type from the values of several different
fields ('relid' and 'leader_pid') whenever logic needs to know it.

In fact, the logical replication worker type is already known at the time
of launching the LogicalRepWorker and it never changes for the lifetime of
that process. Instead of deducing the type, it is simpler to just store it
one time, and access it directly thereafter.

Author: Peter Smith
Reviewed-by: Amit Kapila, Bharath Rupireddy
Discussion: http://postgr.es/m/CAHut+PttPSuP0yoZ=9zLDXKqTJ=d0bhxwKaEaNcaym1XqcvDEg@mail.gmail.com
src/backend/replication/logical/applyparallelworker.c diff | blob | blame | history
src/backend/replication/logical/launcher.c diff | blob | blame | history
src/backend/replication/logical/tablesync.c diff | blob | blame | history
src/include/replication/worker_internal.h diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /