|
PostgreSQL Source Code git master
|
#include "access/xlogdefs.h"#include "catalog/genbki.h"#include "catalog/pg_subscription_rel_d.h"#include "nodes/pg_list.h"

Go to the source code of this file.
Data Structures | |
| struct | SubscriptionRelState |
| struct | LogicalRepSequenceInfo |
Typedefs | |
| typedef FormData_pg_subscription_rel * | Form_pg_subscription_rel |
| typedef struct SubscriptionRelState | SubscriptionRelState |
| typedef struct LogicalRepSequenceInfo | LogicalRepSequenceInfo |
Functions | |
| CATALOG (pg_subscription_rel, 6102, SubscriptionRelRelationId) | |
| DECLARE_UNIQUE_INDEX_PKEY (pg_subscription_rel_srrelid_srsubid_index, 6117, SubscriptionRelSrrelidSrsubidIndexId, pg_subscription_rel, btree(srrelid oid_ops, srsubid oid_ops)) | |
| MAKE_SYSCACHE (SUBSCRIPTIONRELMAP, pg_subscription_rel_srrelid_srsubid_index, 64) | |
| void | AddSubscriptionRelState (Oid subid, Oid relid, char state, XLogRecPtr sublsn, bool retain_lock) |
| void | UpdateSubscriptionRelState (Oid subid, Oid relid, char state, XLogRecPtr sublsn, bool already_locked) |
| char | GetSubscriptionRelState (Oid subid, Oid relid, XLogRecPtr *sublsn) |
| void | RemoveSubscriptionRel (Oid subid, Oid relid) |
| bool | HasSubscriptionTables (Oid subid) |
| List * | GetSubscriptionRelations (Oid subid, bool tables, bool sequences, bool not_ready) |
| void | UpdateDeadTupleRetentionStatus (Oid subid, bool active) |
Variables | |
| FormData_pg_subscription_rel | |
Definition at line 50 of file pg_subscription_rel.h.
|
extern |
Definition at line 270 of file pg_subscription.c.
References AccessShareLock, CatalogTupleInsert(), CharGetDatum(), elog, ERROR, fb(), heap_form_tuple(), heap_freetuple(), HeapTupleIsValid, LockSharedObject(), LSNGetDatum(), NoLock, ObjectIdGetDatum(), RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy2, table_close(), table_open(), UnlockSharedObject(), values, and XLogRecPtrIsValid.
Referenced by AlterSubscription_refresh(), binary_upgrade_add_sub_rel_state(), and CreateSubscription().
| CATALOG | ( | pg_subscription_rel | , |
| 6102 | , | ||
| SubscriptionRelRelationId | |||
| ) |
Definition at line 31 of file pg_subscription_rel.h.
References BKI_FORCE_NULL, BKI_LOOKUP, and fb().
| DECLARE_UNIQUE_INDEX_PKEY | ( | pg_subscription_rel_srrelid_srsubid_index | , |
| 6117 | , | ||
| SubscriptionRelSrrelidSrsubidIndexId | , | ||
| pg_subscription_rel | , | ||
| btree(srrelid oid_ops, srsubid oid_ops) | |||
| ) |
Definition at line 568 of file pg_subscription.c.
References AccessShareLock, Assert, BTEqualStrategyNumber, CharGetDatum(), DatumGetLSN(), fb(), get_rel_relkind(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, InvalidXLogRecPtr, lappend(), SubscriptionRelState::lsn, NIL, ObjectIdGetDatum(), palloc_object, SubscriptionRelState::relid, ScanKeyInit(), sequences, SubscriptionRelState::state, SysCacheGetAttr(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by AlterSubscription_refresh(), AlterSubscription_refresh_seq(), DropSubscription(), and FetchRelationStates().
|
extern |
Definition at line 390 of file pg_subscription.c.
References AccessShareLock, DatumGetLSN(), fb(), GETSTRUCT(), HeapTupleIsValid, InvalidXLogRecPtr, ObjectIdGetDatum(), ReleaseSysCache(), SearchSysCache2(), SysCacheGetAttr(), table_close(), and table_open().
Referenced by AlterSubscription_refresh(), logicalrep_rel_open(), LogicalRepSyncTableStart(), and wait_for_table_state_change().
Definition at line 519 of file pg_subscription.c.
References AccessShareLock, BTEqualStrategyNumber, fb(), get_rel_relkind(), GETSTRUCT(), HeapTupleIsValid, InvalidOid, ObjectIdGetDatum(), ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by FetchRelationStates().
| MAKE_SYSCACHE | ( | SUBSCRIPTIONRELMAP | , |
| pg_subscription_rel_srrelid_srsubid_index | , | ||
| 64 | |||
| ) |
Definition at line 440 of file pg_subscription.c.
References BTEqualStrategyNumber, CatalogTupleDelete(), ereport, errcode(), errdetail(), errhint(), errmsg(), ERROR, fb(), ForwardScanDirection, get_rel_name(), get_rel_relkind(), get_subscription_name(), GETSTRUCT(), heap_getnext(), HeapTupleIsValid, ObjectIdGetDatum(), OidIsValid, RowExclusiveLock, ScanKeyInit(), table_beginscan_catalog(), table_close(), table_endscan(), and table_open().
Referenced by AlterSubscription_refresh(), DropSubscription(), and heap_drop_with_catalog().
Definition at line 645 of file pg_subscription.c.
References AccessShareLock, CatalogTupleUpdate(), elog, ERROR, fb(), heap_freetuple(), heap_modify_tuple(), HeapTupleIsValid, LockSharedObject(), NoLock, ObjectIdGetDatum(), RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy1, table_close(), table_open(), and values.
Referenced by update_retention_status().
|
extern |
Definition at line 324 of file pg_subscription.c.
References AccessShareLock, Assert, CatalogTupleUpdate(), CharGetDatum(), CheckRelationOidLockedByMe(), elog, ERROR, fb(), heap_modify_tuple(), HeapTupleIsValid, InvalidOid, LockHeldByMe(), LockSharedObject(), LSNGetDatum(), NoLock, ObjectIdGetDatum(), RelationGetDescr, RowExclusiveLock, SearchSysCacheCopy2, SET_LOCKTAG_OBJECT, table_close(), table_open(), values, and XLogRecPtrIsValid.
Referenced by AlterSubscription_refresh_seq(), copy_sequence(), LogicalRepSyncTableStart(), ProcessSyncingTablesForApply(), and ProcessSyncingTablesForSync().
| FormData_pg_subscription_rel |
Definition at line 48 of file pg_subscription_rel.h.