Re: is_superuser is not documented - Mailing list pgsql-hackers

From Joseph Koshakow
Subject Re: is_superuser is not documented
Date
Msg-id CAAvxfHcxH-hLndty6CRThGXL1hLsgCn+E3QuG_4Qi7GxrHmgKg@mail.gmail.com
Whole thread Raw
In response to Re: is_superuser is not documented  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: is_superuser is not documented
List pgsql-hackers
I think I may have discovered a reason why is_superuser is
intentionally undocumented. is_superuser is not updated if a role's
superuser attribute is changed by another session. Therefore,
is_superuser may show you an incorrect stale value.

Perhaps this can be fixed with a show_hook? Otherwise it's probably
best not to document a GUC that can show an incorrect value.

- Joe Koshakow

pgsql-hackers by date:

Previous
From: "Daniel Verite"
Date:
Subject: Re: pg_collation.collversion for C.UTF-8
Next
From: "Joel Jacobson"
Date:
Subject: Re: Do we want a hashset type?