⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pg_authid.h

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 H
字号:
/*------------------------------------------------------------------------- * * pg_authid.h *	  definition of the system "authorization identifier" relation (pg_authid) *	  along with the relation's initial contents. * *	  pg_shadow and pg_group are now publicly accessible views on pg_authid. * * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/catalog/pg_authid.h,v 1.4 2005/10/15 02:49:42 momjian Exp $ * * NOTES *	  the genbki.sh script reads this file and generates .bki *	  information from the DATA() statements. * *------------------------------------------------------------------------- */#ifndef PG_AUTHID_H#define PG_AUTHID_H/* * The CATALOG definition has to refer to the type of rolvaliduntil as * "timestamptz" (lower case) so that bootstrap mode recognizes it.  But * the C header files define this type as TimestampTz.	Since the field is * potentially-null and therefore can't be accessed directly from C code, * there is no particular need for the C struct definition to show the * field type as TimestampTz --- instead we just make it Datum. */#define timestamptz Datum/* ---------------- *		pg_authid definition.  cpp turns this into *		typedef struct FormData_pg_authid * ---------------- */#define AuthIdRelationId	1260CATALOG(pg_authid,1260) BKI_SHARED_RELATION{	NameData	rolname;		/* name of role */	bool		rolsuper;		/* read this field via superuser() only! */	bool		rolinherit;		/* inherit privileges from other roles? */	bool		rolcreaterole;	/* allowed to create more roles? */	bool		rolcreatedb;	/* allowed to create databases? */	bool		rolcatupdate;	/* allowed to alter catalogs manually? */	bool		rolcanlogin;	/* allowed to log in as session user? */	int4		rolconnlimit;	/* max connections allowed (-1=no limit) */	/* remaining fields may be null; use heap_getattr to read them! */	text		rolpassword;	/* password, if any */	timestamptz rolvaliduntil;	/* password expiration time, if any */	text		rolconfig[1];	/* GUC settings to apply at login */} FormData_pg_authid;#undef timestamptz/* ---------------- *		Form_pg_authid corresponds to a pointer to a tuple with *		the format of pg_authid relation. * ---------------- */typedef FormData_pg_authid *Form_pg_authid;/* ---------------- *		compiler constants for pg_authid * ---------------- */#define Natts_pg_authid					11#define Anum_pg_authid_rolname			1#define Anum_pg_authid_rolsuper			2#define Anum_pg_authid_rolinherit		3#define Anum_pg_authid_rolcreaterole	4#define Anum_pg_authid_rolcreatedb		5#define Anum_pg_authid_rolcatupdate		6#define Anum_pg_authid_rolcanlogin		7#define Anum_pg_authid_rolconnlimit		8#define Anum_pg_authid_rolpassword		9#define Anum_pg_authid_rolvaliduntil	10#define Anum_pg_authid_rolconfig		11/* ---------------- *		initial contents of pg_authid * * The uppercase quantities will be replaced at initdb time with * user choices. * ---------------- */DATA(insert OID = 10 ( "POSTGRES" t t t t t t -1 _null_ _null_ _null_ ));#define BOOTSTRAP_SUPERUSERID 10#endif   /* PG_AUTHID_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -