bool subdisableonerr; /* True if a worker error should cause the
* subscription to be disabled */
bool subpasswordrequired; /* Must connection use a password? */
bool subrunasowner; /* True if replication should execute as the
* subscription owner */
bool subfailover; /* True if the associated replication slots *(i.e.themainslotandthetablesync *slots)intheupstreamdatabaseareenabled
* to be synchronized to the standbys. */
#ifdef CATALOG_VARLEN /* variable-length fields start here */ /* Connection string to the publisher */
text subconninfo BKI_FORCE_NOT_NULL;
/* Slot name on publisher */
NameData subslotname BKI_FORCE_NULL;
/* Synchronous commit setting for worker */
text subsynccommit BKI_FORCE_NOT_NULL;
/* List of publications subscribed to */
text subpublications[1] BKI_FORCE_NOT_NULL;
/* Only publish data originating from the specified origin */
text suborigin BKI_DEFAULT(LOGICALREP_ORIGIN_ANY); #endif
} FormData_pg_subscription;
typedefstruct Subscription
{
Oid oid; /* Oid of the subscription */
Oid dbid; /* Oid of the database which subscription is
* in */
XLogRecPtr skiplsn; /* All changes finished at this LSN are
* skipped */ char *name; /* Name of the subscription */
Oid owner; /* Oid of the subscription owner */ bool ownersuperuser; /* Is the subscription owner a superuser? */ bool enabled; /* Indicates if the subscription is enabled */ bool binary; /* Indicates if the subscription wants data in
* binary format */ char stream; /* Allow streaming in-progress transactions.
* See LOGICALREP_STREAM_xxx constants. */ char twophasestate; /* Allow streaming two-phase transactions */ bool disableonerr; /* Indicates if the subscription should be *automaticallydisabledifaworkererror
* occurs */ bool passwordrequired; /* Must connection use a password? */ bool runasowner; /* Run replication as subscription owner */ bool failover; /* True if the associated replication slots *(i.e.themainslotandthetablesync *slots)intheupstreamdatabaseareenabled
* to be synchronized to the standbys. */ char *conninfo; /* Connection string to the publisher */ char *slotname; /* Name of the replication slot */ char *synccommit; /* Synchronous commit setting for worker */
List *publications; /* List of publication names to subscribe to */ char *origin; /* Only publish data originating from the
* specified origin */
} Subscription;
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.