Re: information_schema.applicable_roles reports a role with no usable membership option

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: information_schema.applicable_roles reports a role with no usable membership option
Date: 2026-12-01 00:42:47
Message-ID: CAGRkXqSxZXGNnYMzPaOYxng8G=z4hcTzh+xKWvk6RW64A_pFoA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Yang,

I am leaning toward not a bug because the view doesn't look at the
INHERIT and SET options of a grant, and a grant with both off is still
a real membership. Hiding those grants would also hide the one a
CREATEROLE user gets on a role it creates, which has only ADMIN on by
default.

The docs say "whose privileges the current user can use", and I agree
that could be made clearer.

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2026-12-01 00:59:37 Re: BUG #19911: Window aggregate over ROWS n FOLLOWING: "unexpected end of tuplestore" after spill
Previous Message shihao zhong 2026-12-01 00:40:27 Re: BUG #19949: pg_partition_tree() returns dropped partition from cached OID list