mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Make use of new list primitives list_append_unique and list_concat_unique
where applicable.
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/flatfiles.c,v 1.12 2005/07/04 04:51:50 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/init/flatfiles.c,v 1.13 2005/07/28 22:27:02 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -571,12 +571,8 @@ write_auth_file(Relation rel_authid, Relation rel_authmem)
|
||||
* Now add all the new roles to roles_list.
|
||||
*/
|
||||
for (i = first_found; i <= last_found; i++)
|
||||
{
|
||||
Oid rolid = authmem_info[i].roleid;
|
||||
|
||||
if (!list_member_oid(roles_list, rolid))
|
||||
roles_list = lappend_oid(roles_list, rolid);
|
||||
}
|
||||
roles_list = list_append_unique_oid(roles_list,
|
||||
authmem_info[i].roleid);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user