/*-------------------------------------------------------------------------
 *
 * pg_subscription_d.h
 *    Macro definitions for pg_subscription
 *
 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
 * Portions Copyright (c) 1994, Regents of the University of California
 *
 * NOTES
 *  ******************************
 *  *** DO NOT EDIT THIS FILE! ***
 *  ******************************
 *
 *  It has been GENERATED by src/backend/catalog/genbki.pl
 *
 *-------------------------------------------------------------------------
 */
#ifndef PG_SUBSCRIPTION_D_H
#define PG_SUBSCRIPTION_D_H

/* Macros related to the structure of pg_subscription */

#define SubscriptionRelationId 6100
#define SubscriptionRelation_Rowtype_Id 6101
#define PgSubscriptionToastTable 4183
#define PgSubscriptionToastIndex 4184
#define SubscriptionObjectIndexId 6114
#define SubscriptionNameIndexId 6115

#define Anum_pg_subscription_oid 1
#define Anum_pg_subscription_subdbid 2
#define Anum_pg_subscription_subskiplsn 3
#define Anum_pg_subscription_subname 4
#define Anum_pg_subscription_subowner 5
#define Anum_pg_subscription_subenabled 6
#define Anum_pg_subscription_subbinary 7
#define Anum_pg_subscription_substream 8
#define Anum_pg_subscription_subtwophasestate 9
#define Anum_pg_subscription_subdisableonerr 10
#define Anum_pg_subscription_subpasswordrequired 11
#define Anum_pg_subscription_subrunasowner 12
#define Anum_pg_subscription_subfailover 13
#define Anum_pg_subscription_subretaindeadtuples 14
#define Anum_pg_subscription_submaxretention 15
#define Anum_pg_subscription_subretentionactive 16
#define Anum_pg_subscription_subserver 17
#define Anum_pg_subscription_subconninfo 18
#define Anum_pg_subscription_subslotname 19
#define Anum_pg_subscription_subsynccommit 20
#define Anum_pg_subscription_subwalrcvtimeout 21
#define Anum_pg_subscription_subpublications 22
#define Anum_pg_subscription_suborigin 23

#define Natts_pg_subscription 23

/* Definitions copied from pg_subscription.h */


/*
 * two_phase tri-state values. See comments atop worker.c to know more about
 * these states.
 */
#define LOGICALREP_TWOPHASE_STATE_DISABLED 'd'
#define LOGICALREP_TWOPHASE_STATE_PENDING 'p'
#define LOGICALREP_TWOPHASE_STATE_ENABLED 'e'

/*
 * The subscription will request the publisher to only send changes that do not
 * have any origin.
 */
#define LOGICALREP_ORIGIN_NONE "none"

/*
 * The subscription will request the publisher to send changes regardless
 * of their origin.
 */
#define LOGICALREP_ORIGIN_ANY "any"

/* Disallow streaming in-progress transactions. */
#define LOGICALREP_STREAM_OFF 'f'

/*
 * Streaming in-progress transactions are written to a temporary file and
 * applied only after the transaction is committed on upstream.
 */
#define LOGICALREP_STREAM_ON 't'

/*
 * Streaming in-progress transactions are applied immediately via a parallel
 * apply worker.
 */
#define LOGICALREP_STREAM_PARALLEL 'p'


/* OID symbols for objects defined in pg_subscription.dat */


#endif							/* PG_SUBSCRIPTION_D_H */
