PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_user_mapping.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_user_mapping.h
4 * definition of the "user mapping" system catalog (pg_user_mapping)
5 *
6 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
8 *
9 * src/include/catalog/pg_user_mapping.h
10 *
11 * NOTES
12 * The Catalog.pm module reads this file and derives schema
13 * information.
14 *
15 *-------------------------------------------------------------------------
16 */
17#ifndef PG_USER_MAPPING_H
18#define PG_USER_MAPPING_H
19
20#include "catalog/genbki.h"
21#include "catalog/pg_user_mapping_d.h" /* IWYU pragma: export */
22
23/* ----------------
24 * pg_user_mapping definition. cpp turns this into
25 * typedef struct FormData_pg_user_mapping
26 * ----------------
27 */
29{
30 Oid oid; /* oid */
31
32 Oid umuser BKI_LOOKUP_OPT(pg_authid); /* Id of the user,
33 * InvalidOid if PUBLIC is
34 * wanted */
35 Oid umserver BKI_LOOKUP(pg_foreign_server); /* server of this
36 * mapping */
37
38#ifdef CATALOG_VARLEN /* variable-length fields start here */
39 text umoptions[1]; /* user mapping options */
40#endif
42
43/* ----------------
44 * Form_pg_user_mapping corresponds to a pointer to a tuple with
45 * the format of pg_user_mapping relation.
46 * ----------------
47 */
49
51
54
57
58#endif /* PG_USER_MAPPING_H */
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:86
#define BKI_LOOKUP(catalog)
Definition genbki.h:46
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:47
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:85
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition genbki.h:63
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:23
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:127
FormData_pg_user_mapping * Form_pg_user_mapping
FormData_pg_user_mapping
unsigned int Oid
static int fb(int x)
Definition c.h:706