pgsql: Add has_largeobject_privilege function. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Add has_largeobject_privilege function.
Date
Msg-id E1sojMH-000kKj-MJ@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove hardcoded hash opclass function signature exceptions
Next
From: Tom Lane
Date:
Subject: pgsql: Make jsonpath .string() be immutable for datetimes.