Switching to NOINHERIT user triggers #XX000 error

From: Dominique Devienne <ddevienne(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Switching to NOINHERIT user triggers #XX000 error
Date: 2024-11-05 17:10:46
Message-ID: CAFCRh-9byA_kmskbL5duYsjqZG3N78KuvY6TkiT3KuRo27=4QQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi. Still working on porting our stuff to v16+, with the ROLE changes.

I'm facing a new issue. The same code and unit test works in v14,
when the LOGIN user running the test is INHERIT or NOINHERIT.

On v16 and v17 though, it works with INHERIT, but with NOINHERIT, I get:

GRANT "...:USER" TO "ddevienne" #XX000: ERROR: no possible grantors

Any clue to what this means, so I can start looking in the right place?

In all 3 (or 6) cases, the code is the same, the client-side is
running libpq 17,
it's only the server that changes. The LOGIN user is the same, with the same
pg_roles attributes, with again the variable being INHERIT or not. --DD

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2024-11-05 17:42:32 Re: Switching to NOINHERIT user triggers #XX000 error
Previous Message Adrian Klaver 2024-11-05 15:46:46 Re: Postgres listens on random port