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 ๐Ÿ”’
map_column_refs ๐Ÿ”’
Map a list of column references to a map of table oids to column names.
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.