public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nathan Bossart <[email protected]>
To: [email protected]
Subject: pgsql: Allow pg_{read,write}_all_data to access large objects.
Date: Mon, 23 Feb 2026 20:57:04 +0000
Message-ID: <[email protected]> (raw)

Allow pg_{read,write}_all_data to access large objects.

Since the initial goal of pg_read_all_data was to be able to run
pg_dump as a non-superuser without explicitly granting access to
every object, it follows that it should allow reading all large
objects.  For consistency, pg_write_all_data should allow writing
all large objects, too.

Author: Nitin Motiani <[email protected]>
Co-authored-by: Nathan Bossart <[email protected]>
Reviewed-by: Dilip Kumar <[email protected]>
Discussion: https://postgr.es/m/CAH5HC96dxAEvP78s1-JK_nDABH5c4w2MDfyx4vEWxBEfofGWsw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d98197602790e60ddb63e491cd9768ab9fc410ed

Modified Files
--------------
doc/src/sgml/user-manag.sgml             |  4 +--
src/backend/catalog/aclchk.c             | 18 ++++++++++++
src/test/regress/expected/privileges.out | 49 +++++++++++++++++++++++++++++++-
src/test/regress/sql/privileges.sql      | 23 ++++++++++++++-
4 files changed, 90 insertions(+), 4 deletions(-)



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Allow pg_{read,write}_all_data to access large objects.
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox