Merge similar algorithms into roles_is_member_of().

Noah Misch <noah@leadboat.com>

Commit: f687bf61ed4dc75ec074c387f848147da2097e13
Author: Noah Misch <noah@leadboat.com>
Date: 2021-03-26T17:42:16Z
Releases: 14.0
Merge similar algorithms into roles_is_member_of().

The next commit would have complicated two or three algorithms, so take
this opportunity to consolidate.  No functional changes.

Reviewed by John Naylor.

Discussion: https://postgr.es/m/20201228043148.GA1053024@rfd.leadboat.com

Files

PathChange+/−
src/backend/utils/adt/acl.c modified +59 −165

Discussion