Structsยง
- PgConnection
Config - Canonical Postgres connection parameters shared across sink, source CDC, batch
executor, and frontend
postgres_querytable function. Each caller constructs this from its own user-facing config struct before invoking the shared helpers likecreate_pg_clientorPostgresExternalTable::connect. - Postgres
External Table - TcpKeepalive
Config - TCP keepalive knobs for the long-lived Postgres client used by the sink.
Lives in
connector_commonso both the sink config and the sharedcreate_pg_clienthelper reference the same definition.
Enumsยง
Constantsยง
- DISCOVER_
PGVECTOR_ ๐COLUMNS_ QUERY - Discover pgvector columns with both
atttypmod(dimension) andformat_typetext.vector(n)is stored asatttypmod = n, while dimension-lessvectoruses-1. We rely on this to keep user-defined type modifiers that are not preserved by sea-schema. - DISCOVER_
PRIMARY_ ๐KEY_ QUERY - SQL query to discover primary key columns directly from PostgreSQL system tables.
This bypasses querying
information_schema.table_constraintsto avoid permission issues. Matchpg_classandpg_namespaceby exact catalog names instead of casting a constructed string toregclass, as unquotedregclassinput folds mixed-case table names to lower case.