Header And Logo

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

pg_auth_members.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  * pg_auth_members.h
00004  *    definition of the system "authorization identifier members" relation
00005  *    (pg_auth_members) along with the relation's initial contents.
00006  *
00007  *
00008  * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
00009  * Portions Copyright (c) 1994, Regents of the University of California
00010  *
00011  * src/include/catalog/pg_auth_members.h
00012  *
00013  * NOTES
00014  *    the genbki.pl script reads this file and generates .bki
00015  *    information from the DATA() statements.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #ifndef PG_AUTH_MEMBERS_H
00020 #define PG_AUTH_MEMBERS_H
00021 
00022 #include "catalog/genbki.h"
00023 
00024 /* ----------------
00025  *      pg_auth_members definition.  cpp turns this into
00026  *      typedef struct FormData_pg_auth_members
00027  * ----------------
00028  */
00029 #define AuthMemRelationId   1261
00030 #define AuthMemRelation_Rowtype_Id  2843
00031 
00032 CATALOG(pg_auth_members,1261) BKI_SHARED_RELATION BKI_WITHOUT_OIDS BKI_ROWTYPE_OID(2843) BKI_SCHEMA_MACRO
00033 {
00034     Oid         roleid;         /* ID of a role */
00035     Oid         member;         /* ID of a member of that role */
00036     Oid         grantor;        /* who granted the membership */
00037     bool        admin_option;   /* granted with admin option? */
00038 } FormData_pg_auth_members;
00039 
00040 /* ----------------
00041  *      Form_pg_auth_members corresponds to a pointer to a tuple with
00042  *      the format of pg_auth_members relation.
00043  * ----------------
00044  */
00045 typedef FormData_pg_auth_members *Form_pg_auth_members;
00046 
00047 /* ----------------
00048  *      compiler constants for pg_auth_members
00049  * ----------------
00050  */
00051 #define Natts_pg_auth_members               4
00052 #define Anum_pg_auth_members_roleid         1
00053 #define Anum_pg_auth_members_member         2
00054 #define Anum_pg_auth_members_grantor        3
00055 #define Anum_pg_auth_members_admin_option   4
00056 
00057 #endif   /* PG_AUTH_MEMBERS_H */