~ubuntu-branches/ubuntu/hardy/postgresql-8.4/hardy-backports

« back to all changes in this revision

Viewing changes to src/include/catalog/pg_auth_members.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_auth_members.h
 
4
 *        definition of the system "authorization identifier members" relation
 
5
 *        (pg_auth_members) along with the relation's initial contents.
 
6
 *
 
7
 *
 
8
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
 
9
 * Portions Copyright (c) 1994, Regents of the University of California
 
10
 *
 
11
 * $PostgreSQL$
 
12
 *
 
13
 * NOTES
 
14
 *        the genbki.sh script reads this file and generates .bki
 
15
 *        information from the DATA() statements.
 
16
 *
 
17
 *-------------------------------------------------------------------------
 
18
 */
 
19
#ifndef PG_AUTH_MEMBERS_H
 
20
#define PG_AUTH_MEMBERS_H
 
21
 
 
22
#include "catalog/genbki.h"
 
23
 
 
24
/* ----------------
 
25
 *              pg_auth_members definition.  cpp turns this into
 
26
 *              typedef struct FormData_pg_auth_members
 
27
 * ----------------
 
28
 */
 
29
#define AuthMemRelationId       1261
 
30
 
 
31
CATALOG(pg_auth_members,1261) BKI_SHARED_RELATION BKI_WITHOUT_OIDS
 
32
{
 
33
        Oid                     roleid;                 /* ID of a role */
 
34
        Oid                     member;                 /* ID of a member of that role */
 
35
        Oid                     grantor;                /* who granted the membership */
 
36
        bool            admin_option;   /* granted with admin option? */
 
37
} FormData_pg_auth_members;
 
38
 
 
39
/* ----------------
 
40
 *              Form_pg_auth_members corresponds to a pointer to a tuple with
 
41
 *              the format of pg_auth_members relation.
 
42
 * ----------------
 
43
 */
 
44
typedef FormData_pg_auth_members *Form_pg_auth_members;
 
45
 
 
46
/* ----------------
 
47
 *              compiler constants for pg_auth_members
 
48
 * ----------------
 
49
 */
 
50
#define Natts_pg_auth_members                           4
 
51
#define Anum_pg_auth_members_roleid                     1
 
52
#define Anum_pg_auth_members_member                     2
 
53
#define Anum_pg_auth_members_grantor            3
 
54
#define Anum_pg_auth_members_admin_option       4
 
55
 
 
56
#endif   /* PG_AUTH_MEMBERS_H */