Doc: explain how to test ADMIN privilege with pg_has_role().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Sep 2024 19:56:34 +0000 (15:56 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 20 Sep 2024 19:56:34 +0000 (15:56 -0400)
commitcf9f6b4688626e8d0682f96879325019d39c9794
tree416e30ab47f210da69935ae0478b397693894ac8
parent6aed7c49ce173386edbe62d178218de6c9fbac42
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