mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
First batch of object rename commands.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.25 2002/12/05 04:04:47 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/superuser.c,v 1.26 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -58,18 +58,3 @@ superuser_arg(AclId userid)
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* The Postgres user running this command is the owner of the specified
|
||||
* database.
|
||||
*/
|
||||
bool
|
||||
is_dbadmin(Oid dbid)
|
||||
{
|
||||
AclId dba;
|
||||
|
||||
dba = get_database_owner(dbid);
|
||||
|
||||
return (GetUserId() == dba);
|
||||
}
|
||||
|
Reference in New Issue
Block a user