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 - Postgres
Table ๐Privilege
Enumsยง
Constantsยง
- CHECK_
TABLE_ ๐PRIVILEGE_ QUERY - 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.
Functionsยง
- create_
pg_ client - create_
pg_ client_ from_ properties - discover_
pgvector_ dimensions - format_
grant_ ๐table_ privilege - format_
grant_ ๐usage - format_
pg_ ๐table_ name - format_
required_ ๐table_ grants - parse_
pgvector_ ๐dimension - pg_
connection_ config_ from_ properties - quote_
pg_ ๐identifier - sea_
type_ ๐to_ pg_ type - sea_
type_ to_ rw_ type