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.

Typedefs

typedef FormData_pg_replication_originForm_pg_replication_origin
 

Functions

 CATALOG (pg_replication_origin, 6000, ReplicationOriginRelationId) BKI_SHARED_RELATION
 
 DECLARE_TOAST_WITH_MACRO (pg_replication_origin, 4181, 4182, PgReplicationOriginToastTable, PgReplicationOriginToastIndex)
 
 DECLARE_UNIQUE_INDEX_PKEY (pg_replication_origin_roiident_index, 6001, ReplicationOriginIdentIndex, pg_replication_origin, btree(roident oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_replication_origin_roname_index, 6002, ReplicationOriginNameIndex, pg_replication_origin, btree(roname text_ops))
 
 MAKE_SYSCACHE (REPLORIGIDENT, pg_replication_origin_roiident_index, 16)
 
 MAKE_SYSCACHE (REPLORIGNAME, pg_replication_origin_roname_index, 16)
 

Variables

 FormData_pg_replication_origin
 

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.

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
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
FormData_pg_replication_origin
unsigned int Oid
Definition: postgres_ext.h:31
Definition: c.h:687

References BKI_FORCE_NOT_NULL.

◆ DECLARE_TOAST_WITH_MACRO()

DECLARE_TOAST_WITH_MACRO ( pg_replication_origin  ,
4181  ,
4182  ,
PgReplicationOriginToastTable  ,
PgReplicationOriginToastIndex   
)

◆ DECLARE_UNIQUE_INDEX()

DECLARE_UNIQUE_INDEX ( pg_replication_origin_roname_index  ,
6002  ,
ReplicationOriginNameIndex  ,
pg_replication_origin  ,
btree(roname text_ops)   
)

◆ DECLARE_UNIQUE_INDEX_PKEY()

DECLARE_UNIQUE_INDEX_PKEY ( pg_replication_origin_roiident_index  ,
6001  ,
ReplicationOriginIdentIndex  ,
pg_replication_origin  ,
btree(roident oid_ops)   
)

◆ MAKE_SYSCACHE() [1/2]

MAKE_SYSCACHE ( REPLORIGIDENT  ,
pg_replication_origin_roiident_index  ,
16   
)

◆ MAKE_SYSCACHE() [2/2]

MAKE_SYSCACHE ( REPLORIGNAME  ,
pg_replication_origin_roname_index  ,
16   
)

Variable Documentation

◆ FormData_pg_replication_origin

FormData_pg_replication_origin

Definition at line 53 of file pg_replication_origin.h.