Re: Fwd: A million users

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>, "kaare(at)jasonic(dot)dk" <kaare(at)jasonic(dot)dk>
Subject: Re: Fwd: A million users
Date: 2024-11-13 10:29:06
Message-ID: 202411131029.qchduffwgzhm@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2024-11-13 10:52:08 Re: Fwd: A million users
Previous Message Jayadevan M 2024-11-13 08:45:29 Re: PostgreSQL logical replication