PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_replication_origin.h File Reference
#include "catalog/genbki.h"
#include "access/xlogdefs.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 ReplicationOriginRelationId   6000
 
#define Natts_pg_replication_origin   2
 
#define Anum_pg_replication_origin_roident   1
 
#define Anum_pg_replication_origin_roname   2
 

Typedefs

typedef
FormData_pg_replication_origin
Form_pg_replication_origin
 

Functions

 CATALOG (pg_replication_origin, 6000) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
 

Variables

 FormData_pg_replication_origin
 

Macro Definition Documentation

#define Anum_pg_replication_origin_roident   1

Definition at line 62 of file pg_replication_origin.h.

Referenced by replorigin_create().

#define Anum_pg_replication_origin_roname   2

Definition at line 63 of file pg_replication_origin.h.

Referenced by replorigin_create().

#define Natts_pg_replication_origin   2

Definition at line 61 of file pg_replication_origin.h.

Referenced by replorigin_create().

#define ReplicationOriginRelationId   6000

Typedef Documentation

Function Documentation

CATALOG ( pg_replication_origin  ,
6000   
)

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:32
Definition: c.h:439

Variable Documentation

FormData_pg_replication_origin

Definition at line 53 of file pg_replication_origin.h.