18 #define SyncRepRequested() \
19 (max_wal_senders > 0 && synchronous_commit > SYNCHRONOUS_COMMIT_LOCAL_FLUSH)
22 #define SYNC_REP_NO_WAIT (-1)
23 #define SYNC_REP_WAIT_WRITE 0
24 #define SYNC_REP_WAIT_FLUSH 1
25 #define SYNC_REP_WAIT_APPLY 2
27 #define NUM_SYNC_REP_WAIT_MODE 3
30 #define SYNC_REP_NOT_WAITING 0
31 #define SYNC_REP_WAITING 1
32 #define SYNC_REP_WAIT_COMPLETE 2
35 #define SYNC_REP_PRIORITY 0
36 #define SYNC_REP_QUORUM 1
#define FLEXIBLE_ARRAY_MEMBER
char member_names[FLEXIBLE_ARRAY_MEMBER]
int sync_standby_priority
void SyncRepInitConfig(void)
void SyncRepWaitForLSN(XLogRecPtr lsn, bool commit)
struct SyncRepConfigData SyncRepConfigData
void syncrep_scanner_init(const char *str)
void syncrep_scanner_finish(void)
struct SyncRepStandbyData SyncRepStandbyData
int SyncRepGetCandidateStandbys(SyncRepStandbyData **standbys)
void syncrep_yyerror(const char *str)
void SyncRepReleaseWaiters(void)
PGDLLIMPORT SyncRepConfigData * SyncRepConfig
PGDLLIMPORT char * SyncRepStandbyNames
void SyncRepUpdateSyncStandbysDefined(void)
int syncrep_yyparse(void)
PGDLLIMPORT SyncRepConfigData * syncrep_parse_result
PGDLLIMPORT char * syncrep_parse_error_msg
void SyncRepCleanupAtProcExit(void)