|
PostgreSQL Source Code git master
|
#include "catalog/genbki.h"#include "catalog/objectaddress.h"#include "catalog/pg_publication_d.h"

Go to the source code of this file.
Data Structures | |
| struct | PublicationActions |
| struct | PublicationDesc |
| struct | Publication |
| struct | PublicationRelInfo |
Typedefs | |
| typedef struct PublicationActions | PublicationActions |
| typedef struct PublicationDesc | PublicationDesc |
| typedef struct Publication | Publication |
| typedef struct PublicationRelInfo | PublicationRelInfo |
| typedef enum PublicationPartOpt | PublicationPartOpt |
Enumerations | |
| enum | PublicationPartOpt { PUBLICATION_PART_ROOT , PUBLICATION_PART_LEAF , PUBLICATION_PART_ALL } |
Variables | |
| END_CATALOG_STRUCT typedef FormData_pg_publication * | Form_pg_publication |
| FormData_pg_publication | |
| typedef struct Publication Publication |
| Enumerator | |
|---|---|
| PUBLICATION_PART_ROOT | |
| PUBLICATION_PART_LEAF | |
| PUBLICATION_PART_ALL | |
Definition at line 171 of file pg_publication.h.
| BEGIN_CATALOG_STRUCT CATALOG | ( | pg_publication | , |
| 6104 | , | ||
| PublicationRelationId | |||
| ) |
Definition at line 31 of file pg_publication.h.
References BKI_LOOKUP, and fb().
|
extern |
Definition at line 325 of file pg_publication.c.
References Publication::alltables, fb(), HeapTupleIsValid, ObjectIdGetDatum(), Publication::oid, pub_collist_to_bitmapset(), ReleaseSysCache(), SearchSysCache2(), and SysCacheGetAttr().
Referenced by check_and_init_gencol(), pgoutput_column_list_init(), and pub_contains_invalid_column().
| DECLARE_UNIQUE_INDEX | ( | pg_publication_pubname_index | , |
| 6111 | , | ||
| PublicationNameIndexId | , | ||
| pg_publication | , | ||
| btree(pubname name_ops) | |||
| ) |
| DECLARE_UNIQUE_INDEX_PKEY | ( | pg_publication_oid_index | , |
| 6110 | , | ||
| PublicationObjectIndexId | , | ||
| pg_publication | , | ||
| btree(oid oid_ops) | |||
| ) |
Definition at line 1007 of file pg_publication.c.
References AccessShareLock, Assert, BTEqualStrategyNumber, CharGetDatum(), fb(), ForwardScanDirection, GetExcludedPublicationTables(), GETSTRUCT(), heap_getnext(), is_publishable_class(), lappend_oid(), list_member_oid(), NIL, PUBLICATION_PART_LEAF, PUBLICATION_PART_ROOT, ScanKeyInit(), table_beginscan_catalog(), table_close(), table_endscan(), and table_open().
Referenced by pg_get_publication_sequences(), and pg_get_publication_tables().
|
extern |
Definition at line 1200 of file pg_publication.c.
References fb(), GetPublicationSchemas(), GetSchemaPublicationRelations(), lfirst_oid, list_concat(), and NIL.
Referenced by AlterPublicationOptions(), InvalidatePubRelSyncCache(), and pg_get_publication_tables().
Definition at line 961 of file pg_publication.c.
References AccessShareLock, BoolGetDatum(), BTEqualStrategyNumber, fb(), Form_pg_publication, GETSTRUCT(), HeapTupleIsValid, InvalidOid, lappend_oid(), NIL, ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by RelationBuildPublicationDesc().
|
extern |
Definition at line 950 of file pg_publication.c.
References Assert, fb(), get_publication_relations(), and GetPublication().
Referenced by AlterPublicationTables(), and GetAllPublicationRelations().
|
extern |
Definition at line 936 of file pg_publication.c.
References Assert, fb(), get_publication_relations(), and GetPublication().
Referenced by AlterPublicationOptions(), AlterPublicationSchemas(), AlterPublicationTables(), InvalidatePubRelSyncCache(), and pg_get_publication_tables().
|
extern |
Definition at line 1224 of file pg_publication.c.
References Publication::allsequences, Publication::alltables, elog, ERROR, fb(), Form_pg_publication, GETSTRUCT(), HeapTupleIsValid, Publication::name, NameStr, ObjectIdGetDatum(), Publication::oid, palloc_object, pstrdup(), Publication::pubactions, PublicationActions::pubdelete, Publication::pubgencols_type, PublicationActions::pubinsert, PublicationActions::pubtruncate, PublicationActions::pubupdate, Publication::pubviaroot, ReleaseSysCache(), and SearchSysCache1().
Referenced by GetExcludedPublicationTables(), GetIncludedPublicationRelations(), GetPublicationByName(), pg_get_publication_tables(), pub_contains_invalid_column(), publication_add_relation(), and publication_add_schema().
|
extern |
Definition at line 1257 of file pg_publication.c.
References fb(), get_publication_oid(), GetPublication(), and OidIsValid.
Referenced by get_object_address_publication_rel(), get_object_address_publication_schema(), LoadPublications(), pg_get_publication_sequences(), and pg_get_publication_tables().
Definition at line 1079 of file pg_publication.c.
References AccessShareLock, BTEqualStrategyNumber, fb(), Form_pg_publication_namespace, GETSTRUCT(), HeapTupleIsValid, lappend_oid(), NIL, ObjectIdGetDatum(), ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by AlterPublicationSchemas(), and GetAllSchemaPublicationRelations().
|
extern |
Definition at line 367 of file pg_publication.c.
References Assert, fb(), find_all_inheritors(), get_rel_relkind(), lappend_oid(), lfirst_oid, list_concat(), NoLock, PUBLICATION_PART_ALL, PUBLICATION_PART_LEAF, and PUBLICATION_PART_ROOT.
Referenced by AlterPublicationOptions(), get_publication_relations(), GetSchemaPublicationRelations(), publication_add_relation(), and RemovePublicationRelById().
Definition at line 874 of file pg_publication.c.
References get_relation_publications().
Referenced by ATExecAttachPartition(), get_rel_sync_entry(), and RelationBuildPublicationDesc().
Definition at line 865 of file pg_publication.c.
References get_relation_publications().
Referenced by ATExecSetExpression(), ATPrepChangePersistence(), get_rel_sync_entry(), GetTopMostAncestorInPublication(), and RelationBuildPublicationDesc().
|
extern |
Definition at line 1143 of file pg_publication.c.
References AccessShareLock, Assert, BTEqualStrategyNumber, fb(), ForwardScanDirection, get_rel_relkind(), GetPubPartitionOptionRelations(), GETSTRUCT(), heap_getnext(), is_publishable_class(), lappend_oid(), list_concat_unique_oid(), NIL, ObjectIdGetDatum(), OidIsValid, ScanKeyInit(), table_beginscan_catalog(), table_close(), table_endscan(), and table_open().
Referenced by GetAllSchemaPublicationRelations(), publication_add_schema(), and RemovePublicationSchemaById().
Definition at line 1117 of file pg_publication.c.
References fb(), Form_pg_publication_namespace, GETSTRUCT(), i, lappend_oid(), NIL, ObjectIdGetDatum(), ReleaseSysCacheList, and SearchSysCacheList1.
Referenced by get_rel_sync_entry(), GetTopMostAncestorInPublication(), and RelationBuildPublicationDesc().
Definition at line 411 of file pg_publication.c.
References fb(), get_rel_namespace(), GetRelationIncludedPublications(), GetSchemaPublications(), InvalidOid, lfirst_oid, list_free(), list_member_oid(), and NIL.
Referenced by get_rel_sync_entry(), pub_contains_invalid_column(), and pub_rf_contains_invalid_column().
Definition at line 161 of file pg_publication.c.
References is_publishable_class(), RelationData::rd_rel, and RelationGetRelid.
Referenced by pgoutput_change(), pgoutput_truncate(), and RelationBuildPublicationDesc().
Definition at line 247 of file pg_publication.c.
References AccessShareLock, BTEqualStrategyNumber, fb(), HeapTupleIsValid, ObjectIdGetDatum(), ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by AlterPublicationOwner_internal(), AlterPublicationTables(), and CheckAlterPublication().
Definition at line 278 of file pg_publication.c.
References AccessShareLock, BTEqualStrategyNumber, fb(), Form_pg_publication_rel, GETSTRUCT(), HeapTupleIsValid, ObjectIdGetDatum(), ScanKeyInit(), systable_beginscan(), systable_endscan(), systable_getnext(), table_close(), and table_open().
Referenced by CheckAlterPublication().
| MAKE_SYSCACHE | ( | PUBLICATIONNAME | , |
| pg_publication_pubname_index | , | ||
| 8 | |||
| ) |
| MAKE_SYSCACHE | ( | PUBLICATIONOID | , |
| pg_publication_oid_index | , | ||
| 8 | |||
| ) |
|
extern |
Definition at line 686 of file pg_publication.c.
References ARR_DATA_PTR, ARR_DIMS, bms_add_member(), DatumGetArrayTypeP, fb(), i, and MemoryContextSwitchTo().
Referenced by AlterPublicationTables(), and check_and_fetch_column_list().
Definition at line 637 of file pg_publication.c.
References attnum, AttrNumberIsForUserDefinedAttr, bms_add_member(), bms_is_member(), ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg, ERROR, fb(), get_attnum(), InvalidAttrNumber, lfirst, RelationGetDescr, RelationGetRelationName, RelationGetRelid, strVal, and TupleDescAttr().
Referenced by AlterPublicationTables(), and publication_add_relation().
|
extern |
Definition at line 718 of file pg_publication.c.
References bms_add_member(), fb(), i, TupleDescData::natts, RelationGetDescr, and TupleDescAttr().
Referenced by pgoutput_column_list_init().
|
extern |
Definition at line 485 of file pg_publication.c.
References Publication::alltables, attnumstoint2vector(), bms_next_member(), BoolGetDatum(), CatalogTupleInsert(), check_publication_add_relation(), CStringGetTextDatum, DEPENDENCY_AUTO, DEPENDENCY_NORMAL, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg, ERROR, fb(), GetNewOidWithIndex(), GetPublication(), GetPubPartitionOptionRelations(), heap_form_tuple(), heap_freetuple(), i, InvalidatePublicationRels(), InvalidObjectAddress, Publication::name, NIL, nodeToString(), ObjectAddressSet, ObjectAddressSubSet, ObjectIdGetDatum(), PointerGetDatum(), pub_collist_validate(), PUBLICATION_PART_ALL, recordDependencyOn(), recordDependencyOnSingleRelExpr(), RelationGetDescr, RelationGetRelationName, RelationGetRelid, RowExclusiveLock, SearchSysCacheExists2, table_close(), table_open(), and values.
Referenced by PublicationAddTables().
|
extern |
Definition at line 751 of file pg_publication.c.
References CatalogTupleInsert(), check_publication_add_schema(), DEPENDENCY_AUTO, ereport, errcode(), ERRCODE_DUPLICATE_OBJECT, errmsg, ERROR, fb(), get_namespace_name(), GetNewOidWithIndex(), GetPublication(), GetSchemaPublicationRelations(), heap_form_tuple(), heap_freetuple(), InvalidatePublicationRels(), InvalidObjectAddress, Publication::name, NIL, ObjectAddressSet, ObjectIdGetDatum(), PUBLICATION_PART_ALL, recordDependencyOn(), RelationGetDescr, RowExclusiveLock, SearchSysCacheExists2, table_close(), table_open(), and values.
Referenced by PublicationAddSchemas().
| END_CATALOG_STRUCT typedef FormData_pg_publication* Form_pg_publication |
Definition at line 80 of file pg_publication.h.
Referenced by AlterObjectRename_internal(), AlterPublication(), AlterPublicationAllFlags(), AlterPublicationOptions(), AlterPublicationOwner(), AlterPublicationOwner_internal(), AlterPublicationSchemas(), AlterPublicationTables(), CheckAlterPublication(), get_publication_name(), GetAllTablesPublications(), GetPublication(), RelationBuildPublicationDesc(), and RemovePublicationById().
| FormData_pg_publication |
Definition at line 71 of file pg_publication.h.