Module system_catalog_dumper

Source
Expand description

Dumps catalog information to files. We run queries in serial rather than parallel because all queries in the pgwire connection are run in serial anyways. Running the queries in serial also makes cleaning up / aborting queries much easier.

Structs§

ClusterReplica
Relation
SystemCatalogDumper

Enums§

RelationCategory

Statics§

MAX_CLUSTER_REPLICA_ERROR_COUNT 🔒
The maximum number of errors we tolerate for a cluster replica. If a cluster replica has more than this many errors, we skip it.
PG_CONNECTION_TIMEOUT 🔒
PG_QUERY_TIMEOUT 🔒
Timeout for a query.
RELATIONS 🔒
This list is used to determine which relations to dump. The relations are grouped and delimited by their category (i.e. Basic object information)
SELECT_CLUSTER_REPLICAS_QUERY 🔒
SET_SEARCH_PATH_QUERY 🔒

Functions§

copy_relation_to_csv
create_postgres_connection
format_catalog_dump_error_message 🔒
format_file_path 🔒
query_column_names
query_relation
write_copy_stream