1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-20 15:22:23 +03:00

More cleanup of userid to be AclId rather than Oid.

This commit is contained in:
Bruce Momjian
2002-12-05 04:04:51 +00:00
parent caaf941070
commit 7816c7cb94
17 changed files with 101 additions and 97 deletions

View File

@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.24 2002/08/09 16:45:14 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.25 2002/12/05 04:04:47 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -39,7 +39,7 @@ superuser(void)
bool
superuser_arg(Oid userid)
superuser_arg(AclId userid)
{
bool result = false;
HeapTuple utup;
@ -49,7 +49,7 @@ superuser_arg(Oid userid)
return true;
utup = SearchSysCache(SHADOWSYSID,
ObjectIdGetDatum(userid),
Int32GetDatum(userid),
0, 0, 0);
if (HeapTupleIsValid(utup))
{
@ -67,7 +67,7 @@ superuser_arg(Oid userid)
bool
is_dbadmin(Oid dbid)
{
Oid dba;
AclId dba;
dba = get_database_owner(dbid);