1/*-------------------------------------------------------------------------
2 *
3 * pg_auth_members.h
4 * definition of the "authorization identifier members" system catalog
5 * (pg_auth_members).
6 *
7 *
8 * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
10 *
11 * src/include/catalog/pg_auth_members.h
12 *
13 * NOTES
14 * The Catalog.pm module reads this file and derives schema
15 * information.
16 *
17 *-------------------------------------------------------------------------
18 */
19#ifndef PG_AUTH_MEMBERS_H
20#define PG_AUTH_MEMBERS_H
21
22#include "catalog/genbki.h"
23#include "catalog/pg_auth_members_d.h"
24
25/* ----------------
26 * pg_auth_members definition. cpp turns this into
27 * typedef struct FormData_pg_auth_members
28 * ----------------
29 */
30CATALOG(pg_auth_members,1261,AuthMemRelationId) BKI_SHARED_RELATION BKI_ROWTYPE_OID(2843,AuthMemRelation_Rowtype_Id) BKI_SCHEMA_MACRO
31{
32 Oid roleid; /* ID of a role */
33 Oid member; /* ID of a member of that role */
34 Oid grantor; /* who granted the membership */
35 bool admin_option; /* granted with admin option? */
36} FormData_pg_auth_members;
37
38/* ----------------
39 * Form_pg_auth_members corresponds to a pointer to a tuple with
40 * the format of pg_auth_members relation.
41 * ----------------
42 */
43typedef FormData_pg_auth_members *Form_pg_auth_members;
44
45#endif /* PG_AUTH_MEMBERS_H */
46