mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-16 19:37:00 +08:00
Similar to commits 14aec03502, 7e735035f2 and dddf4cdc33, this commit makes the order of header file inclusion consistent in more places. Author: Vignesh C Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
58 lines
1.6 KiB
C
58 lines
1.6 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_replication_origin.h
|
|
* definition of the "replication origin" system catalog
|
|
* (pg_replication_origin)
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/catalog/pg_replication_origin.h
|
|
*
|
|
* NOTES
|
|
* The Catalog.pm module reads this file and derives schema
|
|
* information.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_REPLICATION_ORIGIN_H
|
|
#define PG_REPLICATION_ORIGIN_H
|
|
|
|
#include "access/xlogdefs.h"
|
|
#include "catalog/genbki.h"
|
|
#include "catalog/pg_replication_origin_d.h"
|
|
|
|
/* ----------------
|
|
* pg_replication_origin. cpp turns this into
|
|
* typedef struct FormData_pg_replication_origin
|
|
* ----------------
|
|
*/
|
|
CATALOG(pg_replication_origin,6000,ReplicationOriginRelationId) BKI_SHARED_RELATION
|
|
{
|
|
/*
|
|
* 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 BKI_FORCE_NOT_NULL;
|
|
|
|
#ifdef CATALOG_VARLEN /* further variable-length fields */
|
|
#endif
|
|
} FormData_pg_replication_origin;
|
|
|
|
typedef FormData_pg_replication_origin *Form_pg_replication_origin;
|
|
|
|
#endif /* PG_REPLICATION_ORIGIN_H */
|