PostgreSQL Source Code  git master
pg_user_mapping.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pg_user_mapping.h
4  * definition of the "user mapping" system catalog (pg_user_mapping)
5  *
6  * Portions Copyright (c) 1996-2020, 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 Catalog.pm module reads this file and derives schema
13  * information.
14  *
15  *-------------------------------------------------------------------------
16  */
17 #ifndef PG_USER_MAPPING_H
18 #define PG_USER_MAPPING_H
19 
20 #include "catalog/genbki.h"
21 #include "catalog/pg_user_mapping_d.h"
22 
23 /* ----------------
24  * pg_user_mapping definition. cpp turns this into
25  * typedef struct FormData_pg_user_mapping
26  * ----------------
27  */
28 CATALOG(pg_user_mapping,1418,UserMappingRelationId)
29 {
30  Oid oid; /* oid */
31 
32  Oid umuser; /* Id of the user, InvalidOid if PUBLIC is
33  * wanted */
34  Oid umserver; /* server of this mapping */
35 
36 #ifdef CATALOG_VARLEN /* variable-length fields start here */
37  text umoptions[1]; /* user mapping options */
38 #endif
40 
41 /* ----------------
42  * Form_pg_user_mapping corresponds to a pointer to a tuple with
43  * the format of pg_user_mapping relation.
44  * ----------------
45  */
47 
48 DECLARE_TOAST(pg_user_mapping, 4173, 4174);
49 
50 DECLARE_UNIQUE_INDEX(pg_user_mapping_oid_index, 174, on pg_user_mapping using btree(oid oid_ops));
51 #define UserMappingOidIndexId 174
52 DECLARE_UNIQUE_INDEX(pg_user_mapping_user_server_index, 175, on pg_user_mapping using btree(umuser oid_ops, umserver oid_ops));
53 #define UserMappingUserServerIndexId 175
54 
55 #endif /* PG_USER_MAPPING_H */
unsigned int Oid
Definition: postgres_ext.h:31
FormData_pg_user_mapping * Form_pg_user_mapping
FormData_pg_user_mapping
DECLARE_UNIQUE_INDEX(pg_user_mapping_oid_index, 174, on pg_user_mapping using btree(oid oid_ops))
DECLARE_TOAST(pg_user_mapping, 4173, 4174)
Definition: c.h:617
CATALOG(pg_user_mapping, 1418, UserMappingRelationId)