1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Move new typedef AclId into c.h, so as to avoid cluttering namespace

by having to include miscadmin.h into other header files.
This commit is contained in:
Tom Lane
2003-01-09 18:00:24 +00:00
parent 9df2c44032
commit 83b06823f6
7 changed files with 14 additions and 21 deletions

View File

@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: miscadmin.h,v 1.114 2002/12/09 18:21:43 tgl Exp $
* $Id: miscadmin.h,v 1.115 2003/01/09 18:00:24 tgl Exp $
*
* NOTES
* some of the information in this file should be moved to
@ -176,7 +176,7 @@ extern bool EnableSSL;
extern bool SilentMode;
extern int MaxBackends;
extern int ReservedBackends;
extern int NBuffers;
extern DLLIMPORT int NBuffers;
extern int PostPortNumber;
extern int Unix_socket_permissions;
extern char *Unix_socket_group;
@ -200,13 +200,7 @@ extern char *ExpandDatabasePath(const char *path);
extern void SetDatabaseName(const char *name);
extern void SetDatabasePath(const char *path);
/*
* AclId system identifier for the user, group, etc.
*/
typedef int32 AclId;
extern char *GetUserNameFromId(AclId userid);
extern AclId GetUserId(void);
extern void SetUserId(AclId userid);
extern AclId GetSessionUserId(void);