PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_language.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_language.h
4 * definition of the "language" system catalog (pg_language)
5 *
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_language.h
11 *
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_LANGUAGE_H
19#define PG_LANGUAGE_H
20
21#include "catalog/genbki.h"
22#include "catalog/pg_language_d.h" /* IWYU pragma: export */
23
24/* ----------------
25 * pg_language definition. cpp turns this into
26 * typedef struct FormData_pg_language
27 * ----------------
28 */
30
32{
33 Oid oid; /* oid */
34
35 /* Language name */
37
38 /* Language's owner */
40
41 /* Is a procedural language */
42 bool lanispl BKI_DEFAULT(f);
43
44 /* PL is trusted */
45 bool lanpltrusted BKI_DEFAULT(f);
46
47 /* Call handler, if it's a PL */
48 Oid lanplcallfoid BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc);
49
50 /* Optional anonymous-block handler function */
52
53 /* Optional validation function */
54 Oid lanvalidator BKI_DEFAULT(0) BKI_LOOKUP_OPT(pg_proc);
55
56#ifdef CATALOG_VARLEN /* variable-length fields start here */
57 /* Access privileges */
59#endif
61
63
64/* ----------------
65 * Form_pg_language corresponds to a pointer to a tuple with
66 * the format of pg_language relation.
67 * ----------------
68 */
70
72
75
78
79#endif /* PG_LANGUAGE_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_DEFAULT(value)
Definition genbki.h:54
#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
FormData_pg_language
Definition pg_language.h:60
END_CATALOG_STRUCT typedef FormData_pg_language * Form_pg_language
Definition pg_language.h:69
unsigned int Oid
static int fb(int x)
Definition c.h:772