17#ifndef PG_SUBSCRIPTION_H
18#define PG_SUBSCRIPTION_H
22#include "catalog/pg_subscription_d.h"
174#ifdef EXPOSE_TO_CLIENT_CODE
180#define LOGICALREP_TWOPHASE_STATE_DISABLED 'd'
181#define LOGICALREP_TWOPHASE_STATE_PENDING 'p'
182#define LOGICALREP_TWOPHASE_STATE_ENABLED 'e'
188#define LOGICALREP_ORIGIN_NONE "none"
194#define LOGICALREP_ORIGIN_ANY "any"
197#define LOGICALREP_STREAM_OFF 'f'
203#define LOGICALREP_STREAM_ON 't'
209#define LOGICALREP_STREAM_PARALLEL 'p'
#define BEGIN_CATALOG_STRUCT
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
#define BKI_LOOKUP(catalog)
#define END_CATALOG_STRUCT
#define BKI_DEFAULT(value)
#define BKI_LOOKUP_OPT(catalog)
#define DECLARE_TOAST_WITH_MACRO(name, toastoid, indexoid, toastoidmacro, indexoidmacro)
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
#define BKI_FORCE_NOT_NULL
#define CATALOG(name, oid, oidmacro)
#define MAKE_SYSCACHE(name, idxname, nbuckets)
#define BKI_SHARED_RELATION
#define BKI_ROWTYPE_OID(oid, oidmacro)
int CountDBSubscriptions(Oid dbid)
void FreeSubscription(Subscription *sub)
Subscription * GetSubscription(Oid subid, bool missing_ok, bool aclcheck)
void DisableSubscription(Oid subid)
void GetPublicationsStr(List *publications, StringInfo dest, bool quote_literal)
END_CATALOG_STRUCT typedef FormData_pg_subscription * Form_pg_subscription
BEGIN_CATALOG_STRUCT SubscriptionRelation_Rowtype_Id BKI_SCHEMA_MACRO
Datum quote_literal(PG_FUNCTION_ARGS)