Re: Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match? - Mailing list pgsql-admin

From Edwin UY
Subject Re: Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match?
Date
Msg-id CA+wokJ_Shd8m5bxkLLJLnbznkztrhaScbRVsi8_RgfZ-bsjPNw@mail.gmail.com
Whole thread Raw
In response to Re: Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin
Thank you for the clarification. 
I've logged in as the grantor now and am checking.

On Mon, Mar 23, 2026 at 6:17 PM David G. Johnston <david.g.johnston@gmail.com> wrote:
On Sunday, March 22, 2026, Edwin UY <edwin.uy@gmail.com> wrote:
Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match?

No.

The function performs inherits resolution and you specify an anchor role.  The view restricts itself to the logged in role and just reports actual rows created in the database (i.e., the things granted and revoked).

David J.

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match?
Next
From: Mauricio Martini
Date:
Subject: Technical validation on altering atttypmod for numeric column in PostgreSQL