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
31{
32 Oid oid; /* oid */
33
34 Oid umuser BKI_LOOKUP_OPT(pg_authid); /* Id of the user,
35 * InvalidOid if PUBLIC is
36 * wanted */
37 Oid umserver BKI_LOOKUP(pg_foreign_server); /* server of this
38 * mapping */
39
40#ifdef CATALOG_VARLEN /* variable-length fields start here */
41 text umoptions[1]; /* user mapping options */
42#endif
44
46
47/* ----------------
48 * Form_pg_user_mapping corresponds to a pointer to a tuple with
49 * the format of pg_user_mapping relation.
50 * ----------------
51 */
53
55
58
61
62#endif /* PG_USER_MAPPING_H */
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:66
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:104
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition genbki.h:82
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:146
END_CATALOG_STRUCT typedef FormData_pg_user_mapping * Form_pg_user_mapping
FormData_pg_user_mapping
unsigned int Oid
static int fb(int x)
Definition c.h:718