From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add has_largeobject_privilege function.
Date: Thu, 12 Sep 2024 12:55:37 +0000
Message-ID: <E1sojMH-000kKj-MJ@gemulon.postgresql.org> (raw)
Add has_largeobject_privilege function.
This function checks whether a user has specific privileges on a large object,
identified by OID. The user can be provided by name, OID,
or default to the current user. If the specified large object doesn't exist,
the function returns NULL. It raises an error for a non-existent user name.
This behavior is basically consistent with other privilege inquiry functions
like has_table_privilege.
Bump catalog version.
Author: Yugo Nagata
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/20240702163444.ab586f6075e502eb84f11b1a@sranhm.sraoss.co.jp
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4eada203a5a871f893afe3eb3e07eea5de1aa642
Modified Files
--------------
doc/src/sgml/func.sgml | 18 ++++
src/backend/utils/adt/acl.c | 140 ++++++++++++++++++++++++++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 13 +++
src/test/regress/expected/privileges.out | 162 +++++++++++++++++++++++++++++++
src/test/regress/sql/privileges.sql | 42 ++++++++
6 files changed, 376 insertions(+), 1 deletion(-)
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: pgsql-committers@postgresql.org
Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add has_largeobject_privilege function.
In-Reply-To: <E1sojMH-000kKj-MJ@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox