70 lines
2.0 KiB
C
70 lines
2.0 KiB
C
/* -------------------------------------------------------------------------
|
|
*
|
|
* pg_replication_origin.h
|
|
* Persistent replication origin registry
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/catalog/pg_replication_origin.h
|
|
*
|
|
* NOTES
|
|
* the genbki.pl script reads this file and generates .bki
|
|
* information from the DATA() statements.
|
|
*
|
|
* -------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_REPLICATION_ORIGIN_H
|
|
#define PG_REPLICATION_ORIGIN_H
|
|
|
|
#include "catalog/genbki.h"
|
|
#include "access/xlogdefs.h"
|
|
|
|
/* ----------------
|
|
* pg_replication_origin.cpp turns this into
|
|
* typedef struct FormData_pg_replication_origin
|
|
* ----------------
|
|
*/
|
|
#define ReplicationOriginRelationId 6134
|
|
#define ReplicationOriginRelationId_Rowtype_Id 6143
|
|
CATALOG(pg_replication_origin,6134) BKI_ROWTYPE_OID(6143) BKI_SHARED_RELATION BKI_WITHOUT_OIDS BKI_SCHEMA_MACRO
|
|
{
|
|
/*
|
|
* Locally known id that get included into WAL.
|
|
*
|
|
* This should never leave the system.
|
|
*
|
|
* Needs to fit into an uint16, so we don't waste too much space in WAL
|
|
* records. For this reason we don't use a normal Oid column here, since
|
|
* we need to handle allocation of new values manually.
|
|
*/
|
|
Oid roident;
|
|
|
|
/*
|
|
* Variable-length fields start here, but we allow direct access to
|
|
* roname.
|
|
*/
|
|
|
|
/* external, free-format, name */
|
|
text roname;
|
|
}
|
|
FormData_pg_replication_origin;
|
|
|
|
typedef FormData_pg_replication_origin *Form_pg_replication_origin;
|
|
|
|
/* ----------------
|
|
* compiler constants for pg_replication_origin
|
|
* ----------------
|
|
*/
|
|
#define Natts_pg_replication_origin 2
|
|
#define Anum_pg_replication_origin_roident 1
|
|
#define Anum_pg_replication_origin_roname 2
|
|
|
|
/* ----------------
|
|
* pg_replication_origin has no initial contents
|
|
* ----------------
|
|
*/
|
|
|
|
#endif /* PG_REPLICATION_ORIGIN_H */
|
|
|