| From: | Manu <manuelreyesbravo(at)gmail(dot)com> |
|---|---|
| To: | CharSyam <charsyam(at)gmail(dot)com> |
| Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: [PATCH] Reduce pg_class scans in GRANT/REVOKE ON ALL TABLES IN SCHEMA |
| Date: | 2026-12-05 21:51:15 |
| Message-ID: | 179650747541.585713.15310466276571477950@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi CharSyam,
On Mon, Apr 13, 2026 at 6:52 PM +0900, CharSyam wrote:
> I ran a benchmark on the patch *Reduce pg_class scans in GRANT/REVOKE
> ON ALL TABLES IN SCHEMA* (collapses 5 per-relkind pg_class heap scans
> into 1 scan distributed into per-relkind buckets).
I have posted a series in a new thread that also covers this case:
https://postgr.es/m/179645393515.1049625.15148239006009831884@gmail.com
The series finds a schema's members through pg_depend instead of
scanning pg_class. Its third patch does what yours does for GRANT and
REVOKE ... ON ALL ... IN SCHEMA: it collects the five relkinds in one
pass. That idea is yours, and the patch credits you with
Suggested-by.
The third patch is optional, and the first two stand without it. If
yours is committed first, I will rebase mine on top of it or drop it.
Regards,
Manu
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2026-12-05 21:51:30 | Re: several cases of float and integer mixup |
| Previous Message | Pavel Stehule | 2026-12-05 21:20:13 | Re: extremely slow planner when DISTINCT clause holds more columns |