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 1tBAcj-002GmT-6E for pgsql-general@arkaria.postgresql.org; Wed, 13 Nov 2024 10:29:20 +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 1tBAcg-00D6A8-Kq for pgsql-general@arkaria.postgresql.org; Wed, 13 Nov 2024 10:29:19 +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 1tBAcf-00D6A0-Ue for pgsql-general@lists.postgresql.org; Wed, 13 Nov 2024 10:29:18 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tBAcZ-001eK4-Sc for pgsql-general@postgresql.org; Wed, 13 Nov 2024 10:29:17 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfout.phl.internal (Postfix) with ESMTP id AD92B13806B7; Wed, 13 Nov 2024 05:29:10 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Wed, 13 Nov 2024 05:29:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731493750; x=1731580150; bh=B aTs6ZMMrVcQinfHmz2YjPW1Dk9X9xyNtiqwySmWKis=; b=n7ILVQQSMnL0En1/2 YZzMsfi2LkMUEXYdzZ1wVMdM4m3T48FGOvaUnuuP3Mzx757M8JhbF9rBtdeR+xa8 cLgIb+oICTcO7g1WF5xztGJDf5VAypXVMRwZKb1GcRDc53lkbevycyDMxHxAx6bn KwRRyugptAX961lteylGFcui+qBkPUC3A/Q+IvlIVhZ3s/tmN+vZHf4gGY78AKMf k7GQU9HjfX9ffUm0MWsLMkYL5YDCGknPCYio9awLPFOVdJUbgT/BOE8dftrLBJgv PiffElsi3ifmirvLLzdj9zRz5pjdArDTxGW83yA21ijrmveDGSnU+Et/xPOv2vjX kXiIw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrvddtgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuf fkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgr uceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvg hrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueev necuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhh rdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuth dprhgtphhtthhopehvihhjrgihkhhumhgrrhhjrghinhdrghhithhhuhgssehgmhgrihhl rdgtohhmpdhrtghpthhtohepkhgrrghrvgesjhgrshhonhhitgdrughkpdhrtghpthhtoh epphhgshhqlhdqghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 13 Nov 2024 05:29:10 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1731493746; bh=1vjmmlPAn2E7hjhQQrP/5SiCrT+uiQpH3VS1YBWYU7w=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Y8i5QQTESzJkSg3VvOCfLtKjzZNDG0BHVEAUgEtC/S9U+yvgXa49tA1995T7uVbsL C5aRKWdfWHjUJR25DKXGH/MB5qqD/zzhn19QKouhO/uXMm7t9FJbVVzKQY/gK7aKZc a/E7pMFy5MiEppOCfuwkk2gHgtaEcgnBP4j+HNgu8r1TGmIe+r+GTRyGLucgrbaazj vPGecG+WXll/pqXhif2MxedVMD315Fy33/u8X+W2UHVR57+N16O3EVIdc+ReRSs0Gw R9pVrWcsxlRnjPUPkFFlKeJRIIXnOyK4Ali9MduMWOC5rVf2/CJnST3luqYXCFkRXw OyCGs6irdqJlQ== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id C7D2995; Wed, 13 Nov 2024 11:29:06 +0100 (CET) Date: Wed, 13 Nov 2024 11:29:06 +0100 From: Alvaro Herrera To: Vijaykumar Jain Cc: pgsql-general , "kaare@jasonic.dk" Subject: Re: Fwd: A million users Message-ID: <202411131029.qchduffwgzhm@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Nov-13, Vijaykumar Jain wrote: > I tried to grant select permissions to 5000 different roles on one table, > It failed with row size too big already at 2443. But you can grant select to one "reader" role, and grant that one role to however many other roles you want. This way you can have an arbitrary number of roles with indirect access to the table. In real-world usage, this is more convenient that granting access to individual roles on individual tables; likely, you'll grant access to sets of tables/views/functions/etc rather than exactly one, and you can manage that more easily if you have one intermediate role to modify than if you have to mess with 5000 individual roles. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/