|
PostgreSQL Source Code git master
|
#include "access/xlogdefs.h"

Go to the source code of this file.
Data Structures | |
| struct | SyncRepStandbyData |
| struct | SyncRepConfigData |
Typedefs | |
| typedef struct SyncRepStandbyData | SyncRepStandbyData |
| typedef struct SyncRepConfigData | SyncRepConfigData |
| typedef void * | yyscan_t |
Functions | |
| void | SyncRepWaitForLSN (XLogRecPtr lsn, bool commit) |
| void | SyncRepCleanupAtProcExit (void) |
| void | SyncRepInitConfig (void) |
| void | SyncRepReleaseWaiters (void) |
| int | SyncRepGetCandidateStandbys (SyncRepStandbyData **standbys) |
| void | SyncRepUpdateSyncStandbysDefined (void) |
| int | syncrep_yyparse (SyncRepConfigData **syncrep_parse_result_p, char **syncrep_parse_error_msg_p, yyscan_t yyscanner) |
| int | syncrep_yylex (union YYSTYPE *yylval_param, char **syncrep_parse_error_msg_p, yyscan_t yyscanner) |
| void | syncrep_yyerror (SyncRepConfigData **syncrep_parse_result_p, char **syncrep_parse_error_msg_p, yyscan_t yyscanner, const char *str) |
| void | syncrep_scanner_init (const char *str, yyscan_t *yyscannerp) |
| void | syncrep_scanner_finish (yyscan_t yyscanner) |
Variables | |
| PGDLLIMPORT SyncRepConfigData * | SyncRepConfig |
| PGDLLIMPORT char * | SyncRepStandbyNames |
| #define SyncRepRequested | ( | ) | (max_wal_senders > 0 && synchronous_commit > SYNCHRONOUS_COMMIT_LOCAL_FLUSH) |
Definition at line 18 of file syncrep.h.
Definition at line 189 of file syncrep_scanner.l.
References fb(), pfree(), and yyextra.
Referenced by check_synchronous_standby_names().
Definition at line 173 of file syncrep_scanner.l.
References elog, ERROR, fb(), palloc0_object, and str.
Referenced by check_synchronous_standby_names().
|
extern |
Definition at line 156 of file syncrep_scanner.l.
References fb(), and psprintf().
|
extern |
|
extern |
Referenced by check_synchronous_standby_names().
Definition at line 416 of file syncrep.c.
References dlist_delete_thoroughly(), dlist_node_is_detached(), fb(), LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MyProc, and PGPROC::syncRepLinks.
Referenced by ProcKill().
|
extern |
Definition at line 754 of file syncrep.c.
References fb(), i, max_wal_senders, MyWalSnd, SyncRepConfigData::num_sync, palloc_array, qsort, SpinLockAcquire, SpinLockRelease, standby_priority_comparator(), SYNC_REP_PRIORITY, SyncRepConfigData::syncrep_method, SyncRepConfig, WalSndCtl, WalSndCtlData::walsnds, WALSNDSTATE_STOPPING, WALSNDSTATE_STREAMING, and XLogRecPtrIsValid.
Referenced by pg_stat_get_wal_senders(), and SyncRepGetSyncRecPtr().
Definition at line 445 of file syncrep.c.
References application_name, DEBUG1, ereport, errmsg_internal(), fb(), WalSnd::mutex, MyWalSnd, SpinLockAcquire, SpinLockRelease, WalSnd::sync_standby_priority, and SyncRepGetStandbyPriority().
Referenced by ProcessPendingWrites(), StartLogicalReplication(), StartReplication(), WalSndLoop(), and WalSndWaitForWal().
Definition at line 474 of file syncrep.c.
References announce_next_takeover, application_name, DEBUG3, elog, ereport, errmsg(), fb(), WalSnd::flush, LOG, LSN_FORMAT_ARGS, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), MyWalSnd, WalSnd::state, SYNC_REP_PRIORITY, SYNC_REP_WAIT_APPLY, SYNC_REP_WAIT_FLUSH, SYNC_REP_WAIT_WRITE, WalSnd::sync_standby_priority, SyncRepConfigData::syncrep_method, SyncRepConfig, SyncRepGetSyncRecPtr(), SyncRepWakeQueue(), WalSndCtl, WALSNDSTATE_STOPPING, WALSNDSTATE_STREAMING, and XLogRecPtrIsValid.
Referenced by ProcessStandbyReplyMessage().
Definition at line 963 of file syncrep.c.
References Assert, fb(), i, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), NUM_SYNC_REP_WAIT_MODE, SYNC_STANDBY_DEFINED, SYNC_STANDBY_INIT, WalSndCtlData::sync_standbys_status, SyncRepWakeQueue(), SyncStandbysDefined, and WalSndCtl.
Referenced by UpdateSharedMemoryConfig().
|
extern |
Definition at line 148 of file syncrep.c.
References Assert, DestNone, dlist_node_is_detached(), ereport, errcode(), errdetail(), errmsg(), fb(), InterruptHoldoffCount, InvalidXLogRecPtr, LSN_FORMAT_ARGS, LW_EXCLUSIVE, LWLockAcquire(), LWLockRelease(), Min, mode, MyLatch, MyProc, pg_read_barrier, ProcDiePending, QueryCancelPending, ResetLatch(), set_ps_display_remove_suffix(), set_ps_display_suffix(), sprintf, SYNC_REP_NOT_WAITING, SYNC_REP_WAIT_COMPLETE, SYNC_REP_WAIT_FLUSH, SYNC_REP_WAITING, SYNC_STANDBY_DEFINED, SYNC_STANDBY_INIT, WalSndCtlData::sync_standbys_status, SyncRepCancelWait(), PGPROC::syncRepLinks, SyncRepQueueInsert(), SyncRepRequested, PGPROC::syncRepState, SyncRepWaitMode, SyncStandbysDefined, update_process_title, WaitLatch(), PGPROC::waitLSN, WalSndCtl, WARNING, whereToSendOutput, WL_LATCH_SET, and WL_POSTMASTER_DEATH.
Referenced by EndPrepare(), RecordTransactionAbortPrepared(), RecordTransactionCommit(), and RecordTransactionCommitPrepared().
|
extern |
Definition at line 97 of file syncrep.c.
Referenced by assign_synchronous_standby_names(), pg_stat_get_wal_senders(), SyncRepGetCandidateStandbys(), SyncRepGetStandbyPriority(), SyncRepGetSyncRecPtr(), and SyncRepReleaseWaiters().
|
extern |