Structs§
- PgPass
File - Managed .pgpass file for secure password passing to PostgreSQL tools
- Postgres
UrlParts - Parsed components of a PostgreSQL connection URL
Functions§
- check_
required_ tools - Check that required PostgreSQL client tools are available
- cleanup_
stale_ temp_ dirs - Clean up stale temporary directories from previous runs
- create_
managed_ temp_ dir - Create a managed temporary directory with explicit cleanup support
- get_
keepalive_ env_ vars - Get TCP keepalive environment variables for PostgreSQL client tools
- parse_
postgres_ url - Parse a PostgreSQL URL into its components
- quote_
ident - Quote a PostgreSQL identifier (database, schema, table, column)
- remove_
managed_ temp_ dir - Remove a managed temporary directory
- retry_
subprocess_ with_ backoff - Retry a subprocess execution with exponential backoff on connection errors
- retry_
with_ backoff - Retry a function with exponential backoff
- sanitize_
identifier - Sanitize an identifier (table name, schema name, etc.) for display
- strip_
password_ from_ url - Strip password from PostgreSQL connection URL Returns a new URL with password removed, preserving all other components This is useful for storing connection strings in places where passwords should not be visible
- validate_
connection_ string - Validate a PostgreSQL connection string
- validate_
postgres_ identifier - Validate a PostgreSQL identifier (database name, schema name, etc.)
- validate_
source_ target_ different - Validate that source and target URLs are different to prevent accidental data loss