PostgreSQL Source Code
git master
|
#include <worker_internal.h>
Definition at line 37 of file worker_internal.h.
Oid LogicalRepWorker::dbid |
Definition at line 55 of file worker_internal.h.
Referenced by InitializeLogRepWorker(), logicalrep_worker_cleanup(), logicalrep_worker_launch(), pa_launch_parallel_worker(), and process_syncing_tables_for_apply().
uint16 LogicalRepWorker::generation |
Definition at line 49 of file worker_internal.h.
Referenced by logicalrep_pa_worker_stop(), logicalrep_worker_launch(), logicalrep_worker_stop_internal(), ParallelApplyWorkerMain(), and WaitForReplicationWorkerAttach().
bool LogicalRepWorker::in_use |
Definition at line 46 of file worker_internal.h.
Referenced by am_leader_apply_worker(), am_parallel_apply_worker(), logicalrep_worker_attach(), logicalrep_worker_cleanup(), logicalrep_worker_find(), logicalrep_worker_launch(), logicalrep_worker_stop_internal(), logicalrep_workers_find(), and WaitForReplicationWorkerAttach().
XLogRecPtr LogicalRepWorker::last_lsn |
Definition at line 90 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), pg_stat_get_subscription(), and UpdateWorkerStats().
TimestampTz LogicalRepWorker::last_recv_time |
Definition at line 92 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), ParallelApplyWorkerMain(), pg_stat_get_subscription(), SetupApplyOrSyncWorker(), and UpdateWorkerStats().
TimestampTz LogicalRepWorker::last_send_time |
Definition at line 91 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), ParallelApplyWorkerMain(), pg_stat_get_subscription(), SetupApplyOrSyncWorker(), and UpdateWorkerStats().
TimestampTz LogicalRepWorker::launch_time |
Definition at line 43 of file worker_internal.h.
Referenced by logicalrep_worker_launch().
pid_t LogicalRepWorker::leader_pid |
Definition at line 84 of file worker_internal.h.
Referenced by GetLeaderApplyWorkerPid(), logicalrep_worker_cleanup(), logicalrep_worker_launch(), pa_shutdown(), ParallelApplyWorkerMain(), and pg_stat_get_subscription().
bool LogicalRepWorker::parallel_apply |
Definition at line 87 of file worker_internal.h.
Referenced by apply_handle_stream_abort(), logicalrep_worker_cleanup(), logicalrep_worker_launch(), pa_can_start(), and set_stream_options().
PGPROC* LogicalRepWorker::proc |
Definition at line 52 of file worker_internal.h.
Referenced by GetLeaderApplyWorkerPid(), logicalrep_pa_worker_stop(), logicalrep_worker_attach(), logicalrep_worker_cleanup(), logicalrep_worker_find(), logicalrep_worker_launch(), logicalrep_worker_stop_internal(), logicalrep_worker_wakeup_ptr(), logicalrep_workers_find(), pg_stat_get_subscription(), process_syncing_tables_for_apply(), wait_for_worker_state_change(), and WaitForReplicationWorkerAttach().
Oid LogicalRepWorker::relid |
Definition at line 64 of file worker_internal.h.
Referenced by DropSubscription(), InitializeLogRepWorker(), logicalrep_worker_cleanup(), logicalrep_worker_find(), logicalrep_worker_launch(), LogicalRepSyncTableStart(), pg_attribute_noreturn(), pg_stat_get_subscription(), process_syncing_tables_for_sync(), run_tablesync_worker(), and should_apply_changes_for_rel().
slock_t LogicalRepWorker::relmutex |
Definition at line 67 of file worker_internal.h.
Referenced by ApplyLauncherShmemInit(), LogicalRepSyncTableStart(), process_syncing_tables_for_apply(), and process_syncing_tables_for_sync().
char LogicalRepWorker::relstate |
Definition at line 65 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), LogicalRepSyncTableStart(), process_syncing_tables_for_apply(), process_syncing_tables_for_sync(), and wait_for_worker_state_change().
XLogRecPtr LogicalRepWorker::relstate_lsn |
Definition at line 66 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), LogicalRepSyncTableStart(), process_syncing_tables_for_apply(), and process_syncing_tables_for_sync().
XLogRecPtr LogicalRepWorker::reply_lsn |
Definition at line 93 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), pg_stat_get_subscription(), and UpdateWorkerStats().
TimestampTz LogicalRepWorker::reply_time |
Definition at line 94 of file worker_internal.h.
Referenced by logicalrep_worker_launch(), ParallelApplyWorkerMain(), pg_stat_get_subscription(), SetupApplyOrSyncWorker(), and UpdateWorkerStats().
FileSet* LogicalRepWorker::stream_fileset |
Definition at line 78 of file worker_internal.h.
Referenced by apply_handle_stream_commit(), apply_handle_stream_prepare(), logicalrep_worker_launch(), logicalrep_worker_onexit(), pa_set_fileset_state(), stream_abort_internal(), stream_cleanup_files(), stream_open_file(), stream_start_internal(), subxact_info_read(), and subxact_info_write().
Oid LogicalRepWorker::subid |
Definition at line 61 of file worker_internal.h.
Referenced by apply_handle_stream_commit(), apply_handle_stream_prepare(), apply_handle_stream_start(), apply_spooled_messages(), apply_worker_exit(), DisableSubscriptionAndExit(), DropSubscription(), ensure_last_message(), InitializeLogRepWorker(), logicalrep_pa_worker_count(), logicalrep_sync_worker_count(), logicalrep_worker_cleanup(), logicalrep_worker_detach(), logicalrep_worker_find(), logicalrep_worker_launch(), logicalrep_workers_find(), LogicalRepSyncTableStart(), maybe_reread_subscription(), pa_free_worker_info(), pa_lock_stream(), pa_lock_transaction(), pa_unlock_stream(), pa_unlock_transaction(), pg_attribute_noreturn(), pg_stat_get_subscription(), process_syncing_tables_for_apply(), process_syncing_tables_for_sync(), stream_abort_internal(), stream_start_internal(), stream_stop_internal(), wait_for_relation_state_change(), and wait_for_worker_state_change().
LogicalRepWorkerType LogicalRepWorker::type |
Definition at line 40 of file worker_internal.h.
Referenced by am_leader_apply_worker(), logicalrep_worker_cleanup(), logicalrep_worker_launch(), pg_stat_get_subscription(), process_syncing_tables(), and should_apply_changes_for_rel().
Oid LogicalRepWorker::userid |
Definition at line 58 of file worker_internal.h.
Referenced by InitializeLogRepWorker(), logicalrep_worker_cleanup(), logicalrep_worker_launch(), pa_launch_parallel_worker(), and process_syncing_tables_for_apply().