1 /*-------------------------------------------------------------------------
4 * definition of the system "extension" relation (pg_extension)
5 * along with the relation's initial contents.
8 * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/include/catalog/pg_extension.h
14 * the genbki.pl script reads this file and generates .bki
15 * information from the DATA() statements.
17 *-------------------------------------------------------------------------
19 #ifndef PG_EXTENSION_H
20 #define PG_EXTENSION_H
22 #include "catalog/genbki.h"
25 * pg_extension definition. cpp turns this into
26 * typedef struct FormData_pg_extension
29 #define ExtensionRelationId 3079
31 CATALOG(pg_extension,3079)
33 NameData extname; /* extension name */
34 Oid extowner; /* extension owner */
35 Oid extnamespace; /* namespace of contained objects */
36 bool extrelocatable; /* if true, allow ALTER EXTENSION SET SCHEMA */
38 #ifdef CATALOG_VARLEN /* variable-length fields start here */
39 /* extversion may never be null, but the others can be. */
40 text extversion BKI_FORCE_NOT_NULL; /* extension version name */
41 Oid extconfig[1]; /* dumpable configuration tables */
42 text extcondition[1]; /* WHERE clauses for config tables */
44 } FormData_pg_extension;
47 * Form_pg_extension corresponds to a pointer to a tuple with
48 * the format of pg_extension relation.
51 typedef FormData_pg_extension *Form_pg_extension;
54 * compiler constants for pg_extension
58 #define Natts_pg_extension 7
59 #define Anum_pg_extension_extname 1
60 #define Anum_pg_extension_extowner 2
61 #define Anum_pg_extension_extnamespace 3
62 #define Anum_pg_extension_extrelocatable 4
63 #define Anum_pg_extension_extversion 5
64 #define Anum_pg_extension_extconfig 6
65 #define Anum_pg_extension_extcondition 7
68 * pg_extension has no initial contents
72 #endif /* PG_EXTENSION_H */