|
PostgreSQL Source Code git master
|
#include "access/xlog.h"#include "lib/ilist.h"#include "nodes/nodes.h"#include "nodes/replnodes.h"#include "replication/syncrep.h"#include "storage/condition_variable.h"#include "storage/shmem.h"#include "storage/spin.h"

Go to the source code of this file.
Data Structures | |
| struct | WalSnd |
| struct | WalSndCtlData |
Macros | |
| #define | SYNC_STANDBY_INIT (1 << 0) |
| #define | SYNC_STANDBY_DEFINED (1 << 1) |
Typedefs | |
| typedef enum WalSndState | WalSndState |
| typedef struct WalSnd | WalSnd |
| typedef void * | yyscan_t |
Enumerations | |
| enum | WalSndState { WALSNDSTATE_STARTUP = 0 , WALSNDSTATE_BACKUP , WALSNDSTATE_CATCHUP , WALSNDSTATE_STREAMING , WALSNDSTATE_STOPPING } |
Functions | |
| void | WalSndSetState (WalSndState state) |
| int | replication_yyparse (Node **replication_parse_result_p, yyscan_t yyscanner) |
| int | replication_yylex (union YYSTYPE *yylval_param, yyscan_t yyscanner) |
| pg_noreturn void | replication_yyerror (Node **replication_parse_result_p, yyscan_t yyscanner, const char *message) |
| void | replication_scanner_init (const char *str, yyscan_t *yyscannerp) |
| void | replication_scanner_finish (yyscan_t yyscanner) |
| bool | replication_scanner_is_replication_command (yyscan_t yyscanner) |
Variables | |
| PGDLLIMPORT WalSnd * | MyWalSnd |
| PGDLLIMPORT WalSndCtlData * | WalSndCtl |
| #define SYNC_STANDBY_DEFINED (1 << 1) |
Definition at line 132 of file walsender_private.h.
| #define SYNC_STANDBY_INIT (1 << 0) |
Definition at line 125 of file walsender_private.h.
| typedef enum WalSndState WalSndState |
| typedef void* yyscan_t |
Definition at line 144 of file walsender_private.h.
| enum WalSndState |
| Enumerator | |
|---|---|
| WALSNDSTATE_STARTUP | |
| WALSNDSTATE_BACKUP | |
| WALSNDSTATE_CATCHUP | |
| WALSNDSTATE_STREAMING | |
| WALSNDSTATE_STOPPING | |
Definition at line 24 of file walsender_private.h.
| void replication_scanner_finish | ( | yyscan_t | yyscanner | ) |
Definition at line 284 of file repl_scanner.l.
References pfree(), and yyextra.
Referenced by exec_replication_command().
| void replication_scanner_init | ( | const char * | str, |
| yyscan_t * | yyscannerp | ||
| ) |
Definition at line 268 of file repl_scanner.l.
References elog, ERROR, palloc0_object, and str.
Referenced by exec_replication_command().
| bool replication_scanner_is_replication_command | ( | yyscan_t | yyscanner | ) |
Definition at line 299 of file repl_scanner.l.
References replication_yylex(), and yyextra.
Referenced by exec_replication_command().
| pg_noreturn void replication_yyerror | ( | Node ** | replication_parse_result_p, |
| yyscan_t | yyscanner, | ||
| const char * | message | ||
| ) |
Definition at line 260 of file repl_scanner.l.
References ereport, errcode(), errmsg_internal(), and ERROR.
Referenced by replication_scanner_is_replication_command().
Referenced by exec_replication_command().
| void WalSndSetState | ( | WalSndState | state | ) |
Definition at line 3936 of file walsender.c.
References am_walsender, Assert(), WalSnd::mutex, MyWalSnd, SpinLockAcquire, SpinLockRelease, and WalSnd::state.
Referenced by exec_replication_command(), SendBaseBackup(), StartLogicalReplication(), StartReplication(), WalSndErrorCleanup(), WalSndLoop(), and XLogSendPhysical().
|
extern |
Definition at line 120 of file walsender.c.
Referenced by exec_replication_command(), InitWalSenderSlot(), ProcessStandbyHSFeedbackMessage(), ProcessStandbyPSRequestMessage(), ProcessStandbyReplyMessage(), StartLogicalReplication(), StartReplication(), SyncRepGetCandidateStandbys(), SyncRepInitConfig(), SyncRepReleaseWaiters(), WalSndDone(), WalSndKill(), WalSndLoop(), WalSndSetState(), WalSndWait(), WalSndWaitForWal(), XLogSendLogical(), and XLogSendPhysical().
|
extern |
Definition at line 117 of file walsender.c.
Referenced by InitWalSenderSlot(), pg_stat_get_wal_senders(), PhysicalWakeupLogicalWalSnd(), SyncRepGetCandidateStandbys(), SyncRepQueueInsert(), SyncRepReleaseWaiters(), SyncRepUpdateSyncStandbysDefined(), SyncRepWaitForLSN(), SyncRepWakeQueue(), WaitForStandbyConfirmation(), WalSndInitStopping(), WalSndRqstFileReload(), WalSndShmemInit(), WalSndUpdateProgress(), WalSndWait(), WalSndWaitStopping(), and WalSndWakeup().