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 ๐Ÿ”’
SYSTEM_CATALOG_DUMP_DIR ๐Ÿ”’

Functionsยง

copy_relation_to_csv
create_postgres_connection
format_catalog_dump_error_message ๐Ÿ”’
format_file_path ๐Ÿ”’
query_column_names
query_relation
write_copy_stream