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.94.2) (envelope-from ) id 1t1VOB-00Gba9-To for pgsql-admin@arkaria.postgresql.org; Thu, 17 Oct 2024 18:38:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t1VO9-008OPK-OP for pgsql-admin@arkaria.postgresql.org; Thu, 17 Oct 2024 18:38:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1VO9-008OPC-54 for pgsql-admin@lists.postgresql.org; Thu, 17 Oct 2024 18:38:21 +0000 Received: from mail-mw2nam10on20602.outbound.protection.outlook.com ([2a01:111:f403:2412::602] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1VO1-001PTy-T6 for pgsql-admin@lists.postgresql.org; Thu, 17 Oct 2024 18:38:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x7pw13VXuxIcvylBibsvb0afTwiBBkKMBgzIfvwq8/fqQY+xuuzIhmuKh+vWWtmedCCpWol3aPQLFkCXbA4ZXRWueqfsJ95wZCG3YPXqEjsiaO9U/lJL9UXIc78XkO5wRN555YRbP9RYxqpDvLZn3WL7rV/9WvVH3bScPQGHuW1AGj3CnSvUN5XKzKc6ulkvQtKBjP0SwDEnNwIEgEr9g6GhoxlWd3U2QaPasOzkCifcSI1JKjy4Gca7lVbKgECHcXTZQmF3jtf8plP9hQSo9GD0mXAj7KrVz1uNVzFdgrNinq+fDQkvqEh3iyFcmNm3dzWk/QdqgLRiNew6qQ+u+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=z8YTpsv1dSWvw36v6T6h2LW8vTB33mrIo7KuPUxQH9o=; b=EnBf1h+7jcqRsVp1tvinodLNNZ/h96Ev1luf7uGMYLlXZlDFUmixVB4h15vftw8Y05YvSHyY5DTdwUajHLufuZ256DwD6P9l6yyLC5OboGSrBNOENzJNyCyRJbd14e8x+p8qLBL9DpQT0yiH0dSZ5+oGKTlveEK2jbPT+0SrZO4XpwZUP01VQnO7+NB5qyYbTVYnhdUrUriiZN/xsmCv0HQEOxf/g37+f1hwJvEL/HwTMmDGEiDFPq2j2yt5P4tBynyGeBRi4Dvk+wFPqbmNmNhJBasYdbyX/Yul+jQ4pGE5SyU/4cQwlgS3aIw8ad7vJYFJFIbqOiT7DwSJmLc0Ug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=thomsonreuters.com; dmarc=pass action=none header.from=thomsonreuters.com; dkim=pass header.d=thomsonreuters.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thomsonreuters.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z8YTpsv1dSWvw36v6T6h2LW8vTB33mrIo7KuPUxQH9o=; b=VaSg8lkPZVsXCjj2QA1UfIhk+CtZhBqlfC94Reqr5XJxXwu8WgqYovRJRfTv6KcXO6hCxLzF7O6718aZuTrnrlj6WGYLFCMojdUpGL+cn/NvZJj7G26SO7IDsoCKI5+6P6YZttH5oJpuFksNipOhMJQOSwpyt29oTL2qjqGPviQ= Received: from CH0PR03MB6100.namprd03.prod.outlook.com (2603:10b6:610:bb::15) by CH3PR03MB7459.namprd03.prod.outlook.com (2603:10b6:610:1a0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.18; Thu, 17 Oct 2024 18:38:07 +0000 Received: from CH0PR03MB6100.namprd03.prod.outlook.com ([fe80::db8:9703:284a:ef55]) by CH0PR03MB6100.namprd03.prod.outlook.com ([fe80::db8:9703:284a:ef55%4]) with mapi id 15.20.8069.016; Thu, 17 Oct 2024 18:38:07 +0000 From: "Wong, Kam Fook (TR Technology)" To: Pgsql-admin Subject: 101 Grants and Access Right Table/View Thread-Topic: 101 Grants and Access Right Table/View Thread-Index: Adsgw3dAKHdhqlizRD29CgJ7xQlqDQ== Date: Thu, 17 Oct 2024 18:38:07 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=thomsonreuters.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH0PR03MB6100:EE_|CH3PR03MB7459:EE_ x-ms-office365-filtering-correlation-id: 914b9ab8-3af9-440d-62ae-08dceedad819 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|366016|376014|38070700018|8096899003; x-microsoft-antispam-message-info: =?us-ascii?Q?bDwoZv+XHMQAeGzmDUM8YUEXrXU1qs2TuwCLYWOtSeHFq3FvE40cBCgDBeBB?= =?us-ascii?Q?HNUOiOUmxCW0SjRQg4D/bgMKPL8pvIgjRW8jRnoPDJ4Lg1Z3i0tFP0MyHrTb?= =?us-ascii?Q?c2nZkuI4o3s+By3+TR8YmDGFuOS9aI6ITRUEf18h3h73irP+ra95Oer/b1UR?= =?us-ascii?Q?bjJ7dv8A48CsPRQclWCY3tHF1VFY3Xv+B7D06QDajvladwvyrFD8qhfXgndu?= =?us-ascii?Q?5vHfJMUmKJwNLiU9rxJmvgX3boNXOaSxLTc46nWCH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G5dOqmzR3Itgr25batilGHj1U3ocfmr1XeMnMhaubV3bnRhzET2V/hnwo?= =?us-ascii?Q?Lh2cAsvvlGBVe5vb5Gm0nLT+oY9dwA/oFscQmeYYFbwfjo6zYVTzRCKsfWML?= =?us-ascii?Q?DM5zca8u49nmrg8Pe65me0fQ8Wq0kR04Vlv2zv7uySvpg0ro8SKYS6RQ7Bhg?= =?us-ascii?Q?7stNnubJsRt9GcBxlDXviK3V8Ca4Yx59makzWcjgHD+wZz3Q07fbtdGkcU+W?= =?us-ascii?Q?1L8wJ6U=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR03MB6100.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014)(38070700018)(8096899003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TGc0N8AFzR6zMnt4Z44GzFnh9pnO7FX+gLioumX23GY3J5K97alOgaThOqn5?= =?us-ascii?Q?Z+cmqxeknto2gIAFg5Da+/E/8zCZhyyo/6uVSBf9wsLy4qGKyO+ZkiOKRo/D?= =?us-ascii?Q?zRCo6hytPAJR/Zk+pHO0gEzTl5MJEIdIfO6TyibC0dGe2zObwfc2dFfnHV2d?= =?us-ascii?Q?xUKZIbDzpg4GhnUmocgPcfu1ey1jfP15ULOfttNXFgFTm4XfHXFrca7AsjzI?= =?us-ascii?Q?T7CUjwU/M1m3aAFI89OPSQJa4Tyv/aV0I4qUgCBtRDQxzbuCovtepzC8+nkV?= =?us-ascii?Q?dVSX81PNzaJpkWLCzCxSUcspnItdzUc+FfebNdxJkrgFD7QeWzHR/pVZYU9c?= =?us-ascii?Q?mGDrSWB79n3Pf/mthVU32Pp58fRXp85UYlevz/VGzmeTXm8vOWCi1w9hEQQZ?= =?us-ascii?Q?6dTGslCfg4ReFsE546fAwQVLmvF9yR4t7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2SrkMnWIv7UjlGO9Cpt8plaU5y/h0CQ4CskKN4m9uHWi0EKEz3/?= =?us-ascii?Q?jvtjOeTiQZEk4unJ5I7WB1a3DgemT9NszKlyi76+l7PsuAv5slRtkjsFglsK?= =?us-ascii?Q?ijLOE4m0NAcDDqjSi/F0hZze2hMPvxCYBzrVMDTtrPK4sghP5uf7IPAJ05xg?= =?us-ascii?Q?sRXkX1ihb1EJDWYRiN/dGc2dodbW0TRV4XNIBEHsYfnJz4XWzqnLJuZg6/CG?= =?us-ascii?Q?3Gu2y2/tGRgvA0oAKwXkFgdJgZuVkO5DP1bufh7d4t+sG/LILK+6/EsB82RE?= =?us-ascii?Q?uA=3D=3D?= Content-Type: multipart/alternative; boundary="_000_CH0PR03MB6100645C5E5EF4CBD89AB31BFE472CH0PR03MB6100namp_" MIME-Version: 1.0 X-OriginatorOrg: thomsonreuters.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR03MB6100.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 914b9ab8-3af9-440d-62ae-08dceedad819 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2024 18:38:07.5350 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 62ccb864-6a1a-4b5d-8e1c-397dec1a8258 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lZ2tAvxfKE0iZwIfgjsqdVQ56DbwIJ1FaCAuS2+zvdCURZ2CPJ1Ceo6h0/7twhHdgs4bwfpQazkUk77SnOn1BPZdoyOFOk1d3+6drQ8dBSU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR03MB7459 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_CH0PR03MB6100645C5E5EF4CBD89AB31BFE472CH0PR03MB6100namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a simple question for "access rights" view or table within Postgres. Here is my grant query: GRANT USAGE ON SCHEMA abc TO abc_user; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA abc TO abc_use= r; GRANT ALL ON ALL SEQUENCES IN SCHEMA abc TO abc_user; GRANT EXECUTE ON ALL ROUTINES IN SCHEMA abc TO abc_user; But I can't find a view/table that is associated with the above grants? Th= e view/table below doesn't shown the above granted rights. select * from information_schema.role_table_grants; select * from information_schema.usage_privileges Thank you Kam Fook Wong This e-mail is for the sole use of the intended recipient and contains info= rmation that may be privileged and/or confidential. If you are not an inten= ded recipient, please notify the sender by return e-mail and delete this e-= mail and any attachments. Certain required legal entity disclosures can be = accessed on our website: https://www.thomsonreuters.com/en/resources/disclo= sures.html --_000_CH0PR03MB6100645C5E5EF4CBD89AB31BFE472CH0PR03MB6100namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have a simple qu= estion for “access rights” view or table within Postgres. 

Here is my grant q= uery:

GRANT USAGE ON SCH= EMA abc TO abc_user;

GRANT SELECT, INSE= RT, UPDATE, DELETE ON ALL TABLES IN SCHEMA abc TO abc_user;

GRANT ALL ON ALL S= EQUENCES IN SCHEMA abc TO abc_user;

GRANT EXECUTE ON A= LL ROUTINES IN SCHEMA abc TO abc_user;

But I can’t find a view/table that is associated with the above grant= s?  The view/table below doesn’t shown the above granted rights.=

 

select * from info= rmation_schema.role_table_grants;

select * from info= rmation_schema.usage_privileges


Thank you

Kam Fook Wong<= /o:p>

This e-mail is for the sole use of the intended recipient and contains info= rmation that may be privileged and/or confidential. If you are not an inten= ded recipient, please notify the sender by return e-mail and delete this e-= mail and any attachments. Certain required legal entity disclosures can be accessed on our website: https://= www.thomsonreuters.com/en/resources/disclosures.html --_000_CH0PR03MB6100645C5E5EF4CBD89AB31BFE472CH0PR03MB6100namp_--