]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_user_mapping.h
Reorganize our CRC source files again.
[postgresql] / src / include / catalog / pg_user_mapping.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_user_mapping.h
4  *        definition of the system "user mapping" relation (pg_user_mapping)
5  *
6  * Portions Copyright (c) 1996-2015, 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
38 } FormData_pg_user_mapping;
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  */
45 typedef FormData_pg_user_mapping *Form_pg_user_mapping;
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 */