Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w4Xfa-002IQZ-14 for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2026 05:17:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w4XfY-00FTFe-2N for pgsql-admin@arkaria.postgresql.org; Mon, 23 Mar 2026 05:17:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w4XfY-00FTFU-1F for pgsql-admin@lists.postgresql.org; Mon, 23 Mar 2026 05:17:40 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w4XfW-00000000bRM-15LW for pgsql-admin@lists.postgresql.org; Mon, 23 Mar 2026 05:17:40 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-40ea36b56b7so2954688fac.3 for ; Sun, 22 Mar 2026 22:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774243056; cv=none; d=google.com; s=arc-20240605; b=EmVeNQQL+wcJn7Kg4Wq4VwKT4Wm49mjPv0YLu8ZM80dcefW8qnDbXW1/LQO2jSlad2 ZTULYnrg1VxSkgQBLdf2K7q46aFUFTdkEpvjq8PIF2Ngi8oeWu1l8QmgzwIxJmQlrdp7 W5C2nis5P5oxi5DArkuYgHhHPBgzh2AysYv5sZ85fOWcdYZhPczezLnZ1CVllYJpAp+7 ydBUeEgtFVNTS2Dl7wSu9nTBCxinDF4CIVaDzI1RQ7Pf4uXQMpHU5S/dYUD0xHHFv8vp 2v9n/VwNozWlU8ABay2SyaZtKguLlDdzUbfUkLr50ru+6n+1Y/vuVWExzzvM/hRuhMpS 0I7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:dkim-signature; bh=msMS1ee7kfFNQyHl6/2r23GTlUAKPWLHsj7DKj+l3z4=; fh=9jYyWyj1tPpFoVFJFEuXhmQB7N2BNgjf8V8WO/MkHfE=; b=WDcsbTHJvQYydpH02YLMpPV7FTQXoFUTzDFVrXUd2JrBYmeftaYBlzL3ZxFnMa5hNb 4BN/HQ8gzrmdFf7Km8oGtBe3YW5/gTenTxTUxFjA8p2Tpw6+tgWNiC13APFBF/VK4IPs Iz4XWwfsIq/zr1AawsxEFnyTK4AWeX1dNYavQbEhPTtxGhYVQK6EomMU1P0uH86wF96i PsLi22tb78icqIjWXJh2Y6UzJ/hGDBQaJ6DQ6YQGJaVtF9itANAbuyCuHQuQCZ0VAy3f cWVi8U2CxKlI1PNNIELfVKGhOeZgrOQw9296GUJjVKk5Y2BiID80so+KrXdryOKaFmZ2 8BjA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1774243056; x=1774847856; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=msMS1ee7kfFNQyHl6/2r23GTlUAKPWLHsj7DKj+l3z4=; b=C6IAIN8OUKTN+bzhQbsC+z+RgvQAg/Zk+8P0X244pguhLnZ9/wVU75EUDAko0t3eDG la15ePR7V0cHJmuzoBncbdeU32js0FtZmSMivotaJZkvnU8KKS1bVIU+nPQssgwpOhwl rTMFihhTlFZn8o0Sk1t/sEt3Ma1BK8r95nP3e0/2PSbw502kV4WYyEFqh6XxSuAMi+4M r97eewX1a3+GCHrvHI8f9ByC/2CBNayRewTtWrQbWKOM4tMcaqEoiQ2i3iqQ6v4YucCz u4GupUmCZik0h8wQz9Qfww0bwt00IIPIIMJrGtsu2QJ+Jy6P0nyrbPTMeVb14/nl6SiD wtDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774243056; x=1774847856; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=msMS1ee7kfFNQyHl6/2r23GTlUAKPWLHsj7DKj+l3z4=; b=PG64+pETGpNnqtHTxwFTnG+gdUrVeUoISKYL9Y1OO0KKDeC9EW1cqQK603cajA+azg VQRzoNeAuuvDS98kwF2pCMkH8O/PcV/SoqlKyHs7g4kTtJd2jnuc41WM9bwljWVbyhYP qPDzN4wKkPVe77dP7FGfuk7mdTElJ0/mxDArLwpESMy47aRAI0kb7kUFytAj5/RyE/OM i8xK99a+tGFz91VEIMqgoyFFt/q8/vNERxFH5ikOYxle2Hju8p+j1bes/bXbq5qMkU1M Zz8Qri7q7wLK9E4WtVPkDtLwd2/tCHDY1Kzh1Ft8NoK82EhrnZwUTRzImdiqKfPHhKsh Dong== X-Gm-Message-State: AOJu0YxP9bMfsCGj4MJgf5RpALlIrV1WfdMM+e8GhDq2YeivrEply3IO 6HtC9sHywukSDLZ9pcHCgpIf7zZKd4rxRPDvqN0WFlioC7vWL5gu46/c6hxhiiqrhuaNo3u4bVR dZjUqlgJB14n//r6jHYeNqFwBA+VZnSc= X-Gm-Gg: ATEYQzzFV5jNUOhBKdrjI0Sh8qK3cWmCpj+XZcdz+1hDVQTwMf625w/nGr0GLarVbdO IfQcFHNko3wxW4wxnCxlloAd7AWSIk1zfrlHxGKvin4tTVf8XrZtFQHeQcXG4fsUGnIOVQXPbn1 gm/pyVt7npSGcAfvYg5luhGpgOEoi8T8ql7cH4SoN7h1pMYVbIOTFteaUQ9PpPg4F5Udo2vlScN 5zOZZgziD5mu/AKKMuJSMO9D9DFven4sUFIPhxMlwAsuR6/fvnqNG1cEB5CxG2Xbf1SYSBJhg== X-Received: by 2002:a05:6870:70a0:b0:417:629a:79cb with SMTP id 586e51a60fabf-41c1113b017mr7399837fac.30.1774243054100; Sun, 22 Mar 2026 22:17:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:4dd8:20b0:625:d071:a21b with HTTP; Sun, 22 Mar 2026 22:17:33 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Sun, 22 Mar 2026 22:17:33 -0700 X-Gm-Features: AaiRm50Wt9gvduZVDKS1tNrmAw1Ju-xC7R8eqOFgCGfqYX-GSWMeDIU-67yUqTs Message-ID: Subject: Re: Is the resultset from these queries has_table_privilege and information_schema.role_table_grants supposed to match? To: Edwin UY Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000fc2494064daa268c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000fc2494064daa268c Content-Type: text/plain; charset="UTF-8" On Sunday, March 22, 2026, Edwin UY 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. --000000000000fc2494064daa268c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, March 22, 2026, Edwin UY <edwin.uy@gmail.com> wrote:
Is the resultset from t= hese queries has_table_privilege and information_schema.role_table_gra= nts supposed to match?

<= /div>
No.

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

David J.
<= div>
--000000000000fc2494064daa268c--