PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
pg_user_mapping.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_user_mapping.h
4  * definition of the system "user mapping" relation (pg_user_mapping)
5  *
6  * Portions Copyright (c) 1996-2017, 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 genbki.pl script reads this file and generates .bki
13  * information from the DATA() statements.
14  *
15  *-------------------------------------------------------------------------
16  */
17 #ifndef PG_USER_MAPPING_H
18 #define PG_USER_MAPPING_H
19 
20 #include "catalog/genbki.h"
21 
22 /* ----------------
23  * pg_user_mapping definition. cpp turns this into
24  * typedef struct FormData_pg_user_mapping
25  * ----------------
26  */
27 #define UserMappingRelationId 1418
28 
29 CATALOG(pg_user_mapping,1418)
30 {
31  Oid umuser; /* Id of the user, InvalidOid if PUBLIC is
32  * wanted */
33  Oid umserver; /* server of this mapping */
34 
35 #ifdef CATALOG_VARLEN /* variable-length fields start here */
36  text umoptions[1]; /* user mapping options */
37 #endif
39 
40 /* ----------------
41  * Form_pg_user_mapping corresponds to a pointer to a tuple with
42  * the format of pg_user_mapping relation.
43  * ----------------
44  */
46 
47 /* ----------------
48  * compiler constants for pg_user_mapping
49  * ----------------
50  */
51 
52 #define Natts_pg_user_mapping 3
53 #define Anum_pg_user_mapping_umuser 1
54 #define Anum_pg_user_mapping_umserver 2
55 #define Anum_pg_user_mapping_umoptions 3
56 
57 #endif /* PG_USER_MAPPING_H */
CATALOG(pg_user_mapping, 1418)
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_user_mapping * Form_pg_user_mapping
FormData_pg_user_mapping
Definition: c.h:435