1 /*-------------------------------------------------------------------------
4 * definition of the system "user mapping" relation (pg_user_mapping)
6 * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * src/include/catalog/pg_user_mapping.h
12 * the genbki.pl script reads this file and generates .bki
13 * information from the DATA() statements.
15 *-------------------------------------------------------------------------
17 #ifndef PG_USER_MAPPING_H
18 #define PG_USER_MAPPING_H
20 #include "catalog/genbki.h"
23 * pg_user_mapping definition. cpp turns this into
24 * typedef struct FormData_pg_user_mapping
27 #define UserMappingRelationId 1418
29 CATALOG(pg_user_mapping,1418)
31 Oid umuser; /* Id of the user, InvalidOid if PUBLIC is
33 Oid umserver; /* server of this mapping */
35 #ifdef CATALOG_VARLEN /* variable-length fields start here */
36 text umoptions[1]; /* user mapping options */
38 } FormData_pg_user_mapping;
41 * Form_pg_user_mapping corresponds to a pointer to a tuple with
42 * the format of pg_user_mapping relation.
45 typedef FormData_pg_user_mapping *Form_pg_user_mapping;
48 * compiler constants for pg_user_mapping
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
57 #endif /* PG_USER_MAPPING_H */