Doc: explain how to test ADMIN privilege with pg_has_role().
authorTom Lane <[email protected]>
Fri, 20 Sep 2024 19:56:34 +0000 (15:56 -0400)
committerTom Lane <[email protected]>
Fri, 20 Sep 2024 19:56:34 +0000 (15:56 -0400)
commit0ce8008386cabac026c27be86776f717f0bb229b
tree3acfc407e76aad477008c1f9041365b154fd0f15
parent940bcf80aa76a5f1e65b34d1db638f2079a07d84
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
doc/src/sgml/func.sgml