PostgreSQL Source Code  git master
pg_replication_origin.h File Reference
#include "access/xlogdefs.h"
#include "catalog/genbki.h"
#include "catalog/pg_replication_origin_d.h"
Include dependency graph for pg_replication_origin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PgReplicationOriginToastTable   4181
 
#define PgReplicationOriginToastIndex   4182
 
#define ReplicationOriginIdentIndex   6001
 
#define ReplicationOriginNameIndex   6002
 

Typedefs

typedef FormData_pg_replication_originForm_pg_replication_origin
 

Functions

 CATALOG (pg_replication_origin, 6000, ReplicationOriginRelationId) BKI_SHARED_RELATION
 
 DECLARE_TOAST (pg_replication_origin, 4181, 4182)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_replication_origin_roiident_index, 6001, on pg_replication_origin using btree(roident oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_replication_origin_roname_index, 6002, on pg_replication_origin using btree(roname text_ops))
 

Variables

 FormData_pg_replication_origin
 

Macro Definition Documentation

◆ PgReplicationOriginToastIndex

#define PgReplicationOriginToastIndex   4182

Definition at line 59 of file pg_replication_origin.h.

Referenced by IsSharedRelation().

◆ PgReplicationOriginToastTable

#define PgReplicationOriginToastTable   4181

Definition at line 58 of file pg_replication_origin.h.

Referenced by IsSharedRelation().

◆ ReplicationOriginIdentIndex

#define ReplicationOriginIdentIndex   6001

Definition at line 62 of file pg_replication_origin.h.

Referenced by IsSharedRelation(), and replorigin_create().

◆ ReplicationOriginNameIndex

#define ReplicationOriginNameIndex   6002

Definition at line 64 of file pg_replication_origin.h.

Referenced by IsSharedRelation().

Typedef Documentation

◆ Form_pg_replication_origin

Function Documentation

◆ CATALOG()

CATALOG ( pg_replication_origin  ,
6000  ,
ReplicationOriginRelationId   
)

Definition at line 30 of file pg_replication_origin.h.

References BKI_FORCE_NOT_NULL.

31 {
32  /*
33  * Locally known id that get included into WAL.
34  *
35  * This should never leave the system.
36  *
37  * Needs to fit into an uint16, so we don't waste too much space in WAL
38  * records. For this reason we don't use a normal Oid column here, since
39  * we need to handle allocation of new values manually.
40  */
41  Oid roident;
42 
43  /*
44  * Variable-length fields start here, but we allow direct access to
45  * roname.
46  */
47 
48  /* external, free-format, name */
49  text roname BKI_FORCE_NOT_NULL;
50 
51 #ifdef CATALOG_VARLEN /* further variable-length fields */
52 #endif
FormData_pg_replication_origin
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
Definition: c.h:621

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_replication_origin  ,
4181  ,
4182   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_replication_origin_roname_index  ,
6002  ,
on pg_replication_origin using   btreeroname text_ops 
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_replication_origin_roiident_index  ,
6001  ,
on pg_replication_origin using   btreeroident oid_ops 
)

Variable Documentation

◆ FormData_pg_replication_origin

FormData_pg_replication_origin

Definition at line 53 of file pg_replication_origin.h.