PostgreSQL Source Code  git master
pg_language.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_language_d.h"
Include dependency graph for pg_language.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LanguageNameIndexId   2681
 
#define LanguageOidIndexId   2682
 

Typedefs

typedef FormData_pg_languageForm_pg_language
 

Functions

 CATALOG (pg_language, 2612, LanguageRelationId)
 
 DECLARE_TOAST (pg_language, 4157, 4158)
 
 DECLARE_UNIQUE_INDEX (pg_language_name_index, 2681, on pg_language using btree(lanname name_ops))
 
 DECLARE_UNIQUE_INDEX (pg_language_oid_index, 2682, on pg_language using btree(oid oid_ops))
 

Variables

 FormData_pg_language
 

Macro Definition Documentation

◆ LanguageNameIndexId

#define LanguageNameIndexId   2681

Definition at line 70 of file pg_language.h.

◆ LanguageOidIndexId

#define LanguageOidIndexId   2682

Definition at line 72 of file pg_language.h.

Referenced by CreateProceduralLanguage().

Typedef Documentation

◆ Form_pg_language

Definition at line 65 of file pg_language.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_language  ,
2612  ,
LanguageRelationId   
)

Definition at line 29 of file pg_language.h.

References BKI_DEFAULT, and BKI_LOOKUP.

30 {
31  Oid oid; /* oid */
32 
33  /* Language name */
34  NameData lanname;
35 
36  /* Language's owner */
37  Oid lanowner BKI_DEFAULT(PGUID);
38 
39  /* Is a procedural language */
40  bool lanispl BKI_DEFAULT(f);
41 
42  /* PL is trusted */
43  bool lanpltrusted BKI_DEFAULT(f);
44 
45  /* Call handler, if it's a PL */
46  Oid lanplcallfoid BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
47 
48  /* Optional anonymous-block handler function */
49  Oid laninline BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
50 
51  /* Optional validation function */
52  Oid lanvalidator BKI_DEFAULT(0) BKI_LOOKUP(pg_proc);
53 
54 #ifdef CATALOG_VARLEN /* variable-length fields start here */
55  /* Access privileges */
56  aclitem lanacl[1] BKI_DEFAULT(_null_);
57 #endif
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_DEFAULT(value)
Definition: genbki.h:35
Definition: c.h:663
#define BKI_LOOKUP(catalog)
Definition: genbki.h:42
FormData_pg_language
Definition: pg_language.h:58

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_language  ,
4157  ,
4158   
)

◆ DECLARE_UNIQUE_INDEX() [1/2]

DECLARE_UNIQUE_INDEX ( pg_language_name_index  ,
2681  ,
on pg_language using   btreelanname name_ops 
)

◆ DECLARE_UNIQUE_INDEX() [2/2]

DECLARE_UNIQUE_INDEX ( pg_language_oid_index  ,
2682  ,
on pg_language using   btreeoid oid_ops 
)

Variable Documentation

◆ FormData_pg_language

FormData_pg_language

Definition at line 58 of file pg_language.h.