PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_replication_origin.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_replication_origin.h
4 * definition of the "replication origin" system catalog
5 * (pg_replication_origin)
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/catalog/pg_replication_origin.h
11 *
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_REPLICATION_ORIGIN_H
19#define PG_REPLICATION_ORIGIN_H
20
21#include "access/xlogdefs.h"
22#include "catalog/genbki.h"
23#include "catalog/pg_replication_origin_d.h" /* IWYU pragma: export */
24
25/* ----------------
26 * pg_replication_origin. cpp turns this into
27 * typedef struct FormData_pg_replication_origin
28 * ----------------
29 */
31
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
56
58
60
63
66
67#endif /* PG_REPLICATION_ORIGIN_H */
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:104
#define BKI_FORCE_NOT_NULL
Definition genbki.h:52
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:146
#define BKI_SHARED_RELATION
Definition genbki.h:46
END_CATALOG_STRUCT typedef FormData_pg_replication_origin * Form_pg_replication_origin
FormData_pg_replication_origin
unsigned int Oid
static int fb(int x)
Definition c.h:718