PostgreSQL Source Code git master
Loading...
Searching...
No Matches
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.

Functions

BEGIN_CATALOG_STRUCT CATALOG (pg_replication_origin, 6000, ReplicationOriginRelationId) BKI_SHARED_RELATION
 
 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

END_CATALOG_STRUCT typedef FormData_pg_replication_originForm_pg_replication_origin
 
 FormData_pg_replication_origin
 

Function Documentation

◆ CATALOG()

Definition at line 32 of file pg_replication_origin.h.

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

References BKI_FORCE_NOT_NULL, and fb().

◆ 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

◆ Form_pg_replication_origin

Definition at line 59 of file pg_replication_origin.h.

Referenced by replorigin_by_name(), and replorigin_by_oid().

◆ FormData_pg_replication_origin

FormData_pg_replication_origin

Definition at line 55 of file pg_replication_origin.h.