From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Optimize roles_is_member_of() with a Bloom filter. |
Date: | 2024-03-26 19:44:55 |
Message-ID: | E1rpCj9-005ouH-7L@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Optimize roles_is_member_of() with a Bloom filter.
When the list of roles gathered by roles_is_member_of() grows very
large, a Bloom filter is created to help avoid some linear searches
through the list. The threshold for creating the Bloom filter is
set arbitrarily high and may require future adjustment.
Suggested-by: Tom Lane
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAGvXd3OSMbJQwOSc-Tq-Ro1CAz%3DvggErdSG7pv2s6vmmTOLJSg%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/d365ae705409f5d9c81da4b668f59c3598feb512
Modified Files
--------------
src/backend/utils/adt/acl.c | 68 +++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 65 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-03-26 20:02:54 | pgsql: Remove some redundant set_cheapest() calls. |
Previous Message | Tom Lane | 2024-03-26 19:28:54 | pgsql: Fix failure of ALTER FOREIGN TABLE SET SCHEMA to move sequences. |