Doc: explain how to test ADMIN privilege with pg_has_role().
Tom Lane <tgl@sss.pgh.pa.us>
Doc: explain how to test ADMIN privilege with pg_has_role(). This has always been possible, but the syntax is a bit obscure, and our user-facing docs were not very helpful. Spell it out more clearly. Per complaint from Dominique Devienne. Back-patch to all supported branches. Discussion: https://postgr.es/m/CAFCRh-8JNEy+dV4SXFOrWca50u+d=--TO4cq=+ac1oBtfJy4AA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +4 −0 |
Documentation touched
Discussion
- Why no pg_has_role(..., 'ADMIN')? 9 messages · 2024-09-20 → 2024-09-23