Header And Logo

PostgreSQL
| The world's most advanced open source database.

pg_user_mapping.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_user_mapping.h
00004  *    definition of the system "user mapping" relation (pg_user_mapping)
00005  *
00006  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00007  * Portions Copyright (c) 1994, Regents of the University of California
00008  *
00009  * src/include/catalog/pg_user_mapping.h
00010  *
00011  * NOTES
00012  *    the genbki.pl script reads this file and generates .bki
00013  *    information from the DATA() statements.
00014  *
00015  *-------------------------------------------------------------------------
00016  */
00017 #ifndef PG_USER_MAPPING_H
00018 #define PG_USER_MAPPING_H
00019 
00020 #include "catalog/genbki.h"
00021 
00022 /* ----------------
00023  *      pg_user_mapping definition.  cpp turns this into
00024  *      typedef struct FormData_pg_user_mapping
00025  * ----------------
00026  */
00027 #define UserMappingRelationId   1418
00028 
00029 CATALOG(pg_user_mapping,1418)
00030 {
00031     Oid         umuser;         /* Id of the user, InvalidOid if PUBLIC is
00032                                  * wanted */
00033     Oid         umserver;       /* server of this mapping */
00034 
00035 #ifdef CATALOG_VARLEN           /* variable-length fields start here */
00036     text        umoptions[1];   /* user mapping options */
00037 #endif
00038 } FormData_pg_user_mapping;
00039 
00040 /* ----------------
00041  *      Form_pg_user_mapping corresponds to a pointer to a tuple with
00042  *      the format of pg_user_mapping relation.
00043  * ----------------
00044  */
00045 typedef FormData_pg_user_mapping *Form_pg_user_mapping;
00046 
00047 /* ----------------
00048  *      compiler constants for pg_user_mapping
00049  * ----------------
00050  */
00051 
00052 #define Natts_pg_user_mapping               3
00053 #define Anum_pg_user_mapping_umuser         1
00054 #define Anum_pg_user_mapping_umserver       2
00055 #define Anum_pg_user_mapping_umoptions      3
00056 
00057 #endif   /* PG_USER_MAPPING_H */