# Functions
This file contains functions to sort objects that have dependencies among themselves.
No description provided by the author
* A given type is not guaranteed to have a corresponding array type, so we need
* to use array_in() instead of casting to an array.
No description provided by the author
No description provided by the author
No description provided by the author
* This function calls all the functions needed to gather the metadata for a
* single table and assembles the metadata into ColumnDef and TableDef structs
* for more convenient handling in the PrintCreateTableStatement() function.
* This function constructs the names of implicit indexes created by
* unique constraints on tables, so they can be filtered out of the
* index list.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This function handles setup that can be done before parsing flags.
This function handles setup that must be done after parsing flags.
No description provided by the author
No description provided by the author
* This function separates out functions related to procedural languages from
* any other functions, so that language-related functions can be backed up before
* the languages themselves and we can avoid sorting languages and functions
* together to resolve dependencies.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenerateTableBatches batches tables to reduce network congestion and resource contention.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This function retrieves both regular views and materialized views.
No description provided by the author
No description provided by the author
No description provided by the author
Remove external/foreign tables from the data backup set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Potentially expensive query.
No description provided by the author
No description provided by the author
This function only returns dependencies that are referenced in the backup set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* Functions do not have default argument values in GPDB 4.3, so there is no
* difference between a function's "arguments" and "identity arguments" and
* we can use the same map for both fields.
No description provided by the author
No description provided by the author
No description provided by the author
* In addition to lacking the pg_get_function_* functions, GPDB 4.3 lacks
* several columns in pg_proc compared to GPDB 5, so we don't retrieve those.
* The functions pg_get_function_arguments, pg_getfunction_identity_arguments,
* and pg_get_function_result were introduced in GPDB 5, so we can use those
* functions to retrieve arguments, identity arguments, and return values in
* 5 or later but in GPDB 4.3 we must query pg_proc directly and construct
* those values here.
No description provided by the author
* GetIndexes queries for all user and implicitly created indexes, since
* implicitly created indexes could still have metadata to be backed up.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* Partition tables could have child partitions in schemas different
* than the root partition.
No description provided by the author
Used to contruct root tables for GPDB 7+, because the root partition must be constructed by itself first.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* We convert rolvaliduntil to UTC and then append '-00' so that
* we standardize times to UTC but do not lose time zone information
* in the timestamp.
* Rules named "_RETURN", "pg_settings_n", and "pg_settings_u" are
* built-in rules and we don't want to back them up.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Export synchronized snapshot using connection 0 and return snapshotId value as string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Acquire AccessShareLock on a table with NOWAIT option.
This function is responsible for getting the necessary access share locks for the target relations.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* There's no built-in function to generate constraint definitions like there is for other types of
* metadata, so this function constructs them.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* Operator families are not supported in GPDB 4.3, so this function
* is not used in a 4.3 backup.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* This function is largely derived from the dumpSequence() function in pg_dump.c.
No description provided by the author
No description provided by the author
No description provided by the author
* This function prints CREATE TABLE statements in a format very similar to pg_dump.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A view's column names are automatically factored into it's definition.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* This function either prints a path to an executable function (for C and
* internal functions) or a function definition (for functions in other languages).
No description provided by the author
No description provided by the author
No description provided by the author
* This function prints additional statements that come after the CREATE TABLE
* statement for both regular and external tables.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A list of schemas we don't want to back up, formatted for use in a WHERE clause.
* A list of schemas we don't want to back up, formatted for use in a
* WHERE clause.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Set synchronized snapshot for connNum to snapshotId.
No description provided by the author
No description provided by the author
It is assumed that the elements in the input slice are already escaped.
* When leafPartitionData is set, for partition tables we want to print metadata
* for the parent tables and data for the leaf tables, so we split them into
* separate lists.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
Table backup state constants
*/.
Table backup state constants
*/.
Protocol external table is using.
No description provided by the author
No description provided by the author
No description provided by the author
Table backup state constants
*/.
Type of external table.
No description provided by the author
No description provided by the author
No description provided by the author
Table backup state constants
*/.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
* Used for synchronizing DoCleanup.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
* All queries in the various queries_*.go files come from one of three sources:
* - Copied from pg_dump largely unmodified
* - Derived from the output of a psql flag like \d+ or \df
* - Constructed from scratch
* In the former two cases, a reference to the query source is provided for
* further reference.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author