17 #ifndef PG_SUBSCRIPTION_H
18 #define PG_SUBSCRIPTION_H
22 #include "catalog/pg_subscription_d.h"
142 #ifdef EXPOSE_TO_CLIENT_CODE
148 #define LOGICALREP_TWOPHASE_STATE_DISABLED 'd'
149 #define LOGICALREP_TWOPHASE_STATE_PENDING 'p'
150 #define LOGICALREP_TWOPHASE_STATE_ENABLED 'e'
156 #define LOGICALREP_ORIGIN_NONE "none"
162 #define LOGICALREP_ORIGIN_ANY "any"
165 #define LOGICALREP_STREAM_OFF 'f'
171 #define LOGICALREP_STREAM_ON 't'
177 #define LOGICALREP_STREAM_PARALLEL 'p'
#define BKI_DEFAULT(value)
#define BKI_FORCE_NOT_NULL
#define BKI_SHARED_RELATION
#define BKI_ROWTYPE_OID(oid, oidmacro)
CATALOG(pg_subscription, 6100, SubscriptionRelationId) BKI_SHARED_RELATION BKI_ROWTYPE_OID(6101
int CountDBSubscriptions(Oid dbid)
DECLARE_TOAST_WITH_MACRO(pg_subscription, 4183, 4184, PgSubscriptionToastTable, PgSubscriptionToastIndex)
void FreeSubscription(Subscription *sub)
void DisableSubscription(Oid subid)
void GetPublicationsStr(List *publications, StringInfo dest, bool quote_literal)
Subscription * GetSubscription(Oid subid, bool missing_ok)
DECLARE_UNIQUE_INDEX_PKEY(pg_subscription_oid_index, 6114, SubscriptionObjectIndexId, pg_subscription, btree(oid oid_ops))
struct Subscription Subscription
Oid subdbid BKI_LOOKUP(pg_database)
MAKE_SYSCACHE(SUBSCRIPTIONOID, pg_subscription_oid_index, 4)
FormData_pg_subscription * Form_pg_subscription
DECLARE_UNIQUE_INDEX(pg_subscription_subname_index, 6115, SubscriptionNameIndexId, pg_subscription, btree(subdbid oid_ops, subname name_ops))
SubscriptionRelation_Rowtype_Id BKI_SCHEMA_MACRO
Datum quote_literal(PG_FUNCTION_ARGS)