Module postgres

Source
Expand description

Postgres utilities for SQL purification.

Modulesยง

privileges ๐Ÿ”’
replica_identity ๐Ÿ”’

Structsยง

PostgresExportStatementValues ๐Ÿ”’
PurifiedSourceExports ๐Ÿ”’

Functionsยง

generate_column_casts ๐Ÿ”’
generate_create_subsource_statements
generate_source_export_statement_values ๐Ÿ”’
generate_text_columns ๐Ÿ”’
Generate a mapping of Oids to column names that should be ingested as text (rather than their type in the upstream database).
purify_source_exports ๐Ÿ”’
validate_requested_references_privileges ๐Ÿ”’
Ensure that we have select permissions on all tables; we have to do this before we start snapshotting because if we discover we cannot COPY from a table while snapshotting, we break the entire source.