pub struct PostgresCdcConfig {
pub url: String,
pub publication: String,
pub slot_name: String,
pub create_slot: bool,
pub create_publication: bool,
pub publication_tables: Vec<String>,
pub temporary_slot: bool,
pub cursor_id: Option<String>,
pub checkpoint_store: Option<String>,
pub status_interval_ms: u64,
pub tls: TlsConfig,
}Expand description
Postgres logical-replication CDC source (pgoutput). Source-only.
Fields§
§url: StringConnection URL, e.g. postgres://user:pass@host:5432/dbname.
publication: StringPublication name (must already exist; defines which tables are captured).
slot_name: StringReplication slot name; created if missing when create_slot is true.
create_slot: boolCreate the replication slot if it does not exist.
create_publication: boolCreate the publication if missing (default false; leave off if it pre-exists).
Needs table ownership for publication_tables, or superuser when none are set (FOR ALL TABLES).
publication_tables: Vec<String>Tables to include when managing the publication (create_publication); may be schema.table.
Missing ones are added to an existing publication (never removed). Empty = FOR ALL TABLES (needs superuser).
temporary_slot: boolUse a temporary slot (dropped on disconnect). Not restart-safe; default is a permanent slot.
cursor_id: Option<String>Checkpoint key for persisting the confirmed LSN across restarts (optional; the slot is authoritative).
checkpoint_store: Option<String>Checkpoint store spec (e.g. file:///path, s3://bucket/prefix); defaults to the source database.
status_interval_ms: u64Standby-status-update interval in ms; must be shorter than the server’s wal_sender_timeout.
tls: TlsConfigTLS configuration for the replication connection.
Trait Implementations§
Source§impl Clone for PostgresCdcConfig
impl Clone for PostgresCdcConfig
Source§fn clone(&self) -> PostgresCdcConfig
fn clone(&self) -> PostgresCdcConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more