/* *SyncRepGetCandidateStandbysreturnsanarrayofthesestructs, *onepercandidatesynchronouswalsender.
*/ typedefstruct SyncRepStandbyData
{ /* Copies of relevant fields from WalSnd shared-memory struct */
pid_t pid;
XLogRecPtr write;
XLogRecPtr flush;
XLogRecPtr apply; int sync_standby_priority; /* Index of this walsender in the WalSnd shared-memory array */ int walsnd_index; /* This flag indicates whether this struct is about our own process */ bool is_me;
} SyncRepStandbyData;
/* *Structfortheconfigurationofsynchronousreplication. * *Note:thismustbeaflatrepresentationthatcanbeheldinasingle *chunkofmalloc'dmemory,sothatitcanbestoredasthe"extra"data *forthesynchronous_standby_namesGUC.
*/ typedefstruct SyncRepConfigData
{ int config_size; /* total size of this struct, in bytes */ int num_sync; /* number of sync standbys that we need to
* wait for */
uint8 syncrep_method; /* method to choose sync standbys */ int nmembers; /* number of members in the following list */ /* member_names contains nmembers consecutive nul-terminated C strings */ char member_names[FLEXIBLE_ARRAY_MEMBER];
} SyncRepConfigData;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.