PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "access/relation.h"
#include "access/table.h"
#include "catalog/binary_upgrade.h"
#include "catalog/heap.h"
#include "catalog/namespace.h"
#include "catalog/pg_subscription_rel.h"
#include "catalog/pg_type.h"
#include "commands/extension.h"
#include "miscadmin.h"
#include "replication/logical.h"
#include "replication/origin.h"
#include "replication/worker_internal.h"
#include "storage/lmgr.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "utils/pg_lsn.h"
#include "utils/syscache.h"
Go to the source code of this file.
Macros | |
#define | CHECK_IS_BINARY_UPGRADE |
#define CHECK_IS_BINARY_UPGRADE |
Definition at line 34 of file pg_upgrade_support.c.
Datum binary_upgrade_add_sub_rel_state | ( | PG_FUNCTION_ARGS | ) |
Definition at line 325 of file pg_upgrade_support.c.
References AccessShareLock, AddSubscriptionRelState(), CHECK_IS_BINARY_UPGRADE, elog, ERROR, get_subscription_oid(), InvalidXLogRecPtr, PG_ARGISNULL, PG_GETARG_CHAR, PG_GETARG_LSN, PG_GETARG_OID, PG_GETARG_TEXT_PP, PG_RETURN_VOID, relation_close(), relation_open(), RowExclusiveLock, subname, table_close(), table_open(), and text_to_cstring().
Datum binary_upgrade_create_empty_extension | ( | PG_FUNCTION_ARGS | ) |
Definition at line 185 of file pg_upgrade_support.c.
References CHECK_IS_BINARY_UPGRADE, deconstruct_array_builtin(), elog, ERROR, get_extension_oid(), get_namespace_oid(), GetUserId(), i, InsertExtensionTuple(), lappend_oid(), NIL, PG_ARGISNULL, PG_GETARG_ARRAYTYPE_P, PG_GETARG_BOOL, PG_GETARG_DATUM, PG_GETARG_TEXT_PP, PG_RETURN_VOID, PointerGetDatum(), text_to_cstring(), and TextDatumGetCString.
Datum binary_upgrade_logical_slot_has_caught_up | ( | PG_FUNCTION_ARGS | ) |
Definition at line 285 of file pg_upgrade_support.c.
References Assert, CHECK_IS_BINARY_UPGRADE, ReplicationSlot::data, GetFlushRecPtr(), GetUserId(), has_rolreplication(), ReplicationSlotPersistentData::invalidated, LogicalReplicationSlotHasPendingWal(), MyReplicationSlot, NameStr, PG_GETARG_NAME, PG_RETURN_BOOL, ReplicationSlotAcquire(), ReplicationSlotRelease(), RS_INVAL_NONE, and SlotIsLogical.
Datum binary_upgrade_replorigin_advance | ( | PG_FUNCTION_ARGS | ) |
Definition at line 369 of file pg_upgrade_support.c.
References CHECK_IS_BINARY_UPGRADE, elog, ERROR, get_subscription_oid(), InvalidOid, InvalidXLogRecPtr, LockRelationOid(), NAMEDATALEN, PG_ARGISNULL, PG_GETARG_LSN, PG_GETARG_TEXT_PP, PG_RETURN_VOID, ReplicationOriginNameForLogicalRep(), replorigin_advance(), replorigin_by_name(), RowExclusiveLock, subname, table_close(), table_open(), text_to_cstring(), and UnlockRelationOid().
Datum binary_upgrade_set_missing_value | ( | PG_FUNCTION_ARGS | ) |
Definition at line 261 of file pg_upgrade_support.c.
References attname, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, PG_GETARG_TEXT_P, PG_RETURN_VOID, SetAttrMissing(), text_to_cstring(), and value.
Datum binary_upgrade_set_next_array_pg_type_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 65 of file pg_upgrade_support.c.
References binary_upgrade_next_array_pg_type_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_heap_pg_class_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 98 of file pg_upgrade_support.c.
References binary_upgrade_next_heap_pg_class_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_heap_relfilenode | ( | PG_FUNCTION_ARGS | ) |
Definition at line 109 of file pg_upgrade_support.c.
References binary_upgrade_next_heap_pg_class_relfilenumber, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_index_pg_class_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 120 of file pg_upgrade_support.c.
References binary_upgrade_next_index_pg_class_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_index_relfilenode | ( | PG_FUNCTION_ARGS | ) |
Definition at line 131 of file pg_upgrade_support.c.
References binary_upgrade_next_index_pg_class_relfilenumber, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_multirange_array_pg_type_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 87 of file pg_upgrade_support.c.
References binary_upgrade_next_mrng_array_pg_type_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_multirange_pg_type_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 76 of file pg_upgrade_support.c.
References binary_upgrade_next_mrng_pg_type_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_pg_authid_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 175 of file pg_upgrade_support.c.
References binary_upgrade_next_pg_authid_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_pg_enum_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 164 of file pg_upgrade_support.c.
References binary_upgrade_next_pg_enum_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_pg_tablespace_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 43 of file pg_upgrade_support.c.
References binary_upgrade_next_pg_tablespace_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_pg_type_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 54 of file pg_upgrade_support.c.
References binary_upgrade_next_pg_type_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_toast_pg_class_oid | ( | PG_FUNCTION_ARGS | ) |
Definition at line 142 of file pg_upgrade_support.c.
References binary_upgrade_next_toast_pg_class_oid, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_next_toast_relfilenode | ( | PG_FUNCTION_ARGS | ) |
Definition at line 153 of file pg_upgrade_support.c.
References binary_upgrade_next_toast_pg_class_relfilenumber, CHECK_IS_BINARY_UPGRADE, PG_GETARG_OID, and PG_RETURN_VOID.
Datum binary_upgrade_set_record_init_privs | ( | PG_FUNCTION_ARGS | ) |
Definition at line 250 of file pg_upgrade_support.c.
References binary_upgrade_record_init_privs, CHECK_IS_BINARY_UPGRADE, PG_GETARG_BOOL, and PG_RETURN_VOID.