1/*-------------------------------------------------------------------------
2 *
3 * pg_subscription_rel_d.h
4 * Macro definitions for pg_subscription_rel
5 *
6 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * NOTES
10 * ******************************
11 * *** DO NOT EDIT THIS FILE! ***
12 * ******************************
13 *
14 * It has been GENERATED by src/backend/catalog/genbki.pl
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_SUBSCRIPTION_REL_D_H
19#define PG_SUBSCRIPTION_REL_D_H
20
21#define SubscriptionRelRelationId 6102
22
23#define Anum_pg_subscription_rel_srsubid 1
24#define Anum_pg_subscription_rel_srrelid 2
25#define Anum_pg_subscription_rel_srsubstate 3
26#define Anum_pg_subscription_rel_srsublsn 4
27
28#define Natts_pg_subscription_rel 4
29
30
31/* ----------------
32 * substate constants
33 * ----------------
34 */
35#define SUBREL_STATE_INIT 'i' /* initializing (sublsn NULL) */
36#define SUBREL_STATE_DATASYNC 'd' /* data is being synchronized (sublsn
37 * NULL) */
38#define SUBREL_STATE_SYNCDONE 's' /* synchronization finished in front of
39 * apply (sublsn set) */
40#define SUBREL_STATE_READY 'r' /* ready (sublsn set) */
41
42/* These are never stored in the catalog, we only use them for IPC. */
43#define SUBREL_STATE_UNKNOWN '\0' /* unknown state */
44#define SUBREL_STATE_SYNCWAIT 'w' /* waiting for sync */
45#define SUBREL_STATE_CATCHUP 'c' /* catching up with apply */
46
47
48#endif /* PG_SUBSCRIPTION_REL_D_H */
49