Expand description
v6.1.4 — logical-replication subscription catalog.
In-memory table of subscriptions, owned by the engine. The
catalog persists across restarts via the snapshot envelope’s
v4 trailer block (see crate::lib::build_envelope) — same
mechanism v6.1.2 added for publications, just an extra section.
Subscriptions are the receive side of logical replication. A
CreateSubscription row holds:
namethe local identifierconn_strPG keyword=value string the worker parses forhost=…andport=…publicationslist of remote publication namesenabledv6.1.4 hard-codes totrue; ALTER SUBSCRIPTION ENABLE / DISABLE lands in a future sub-versionlast_received_posmaster-WAL byte offset the worker has applied through (updated live by the worker, persisted at the next snapshot)
The worker itself lives in spg-server::replication:: run_subscription_worker — the engine layer only owns the
catalog state, snapshots, and answers SHOW SUBSCRIPTIONS.