pgsql: Add has_largeobject_privilege function.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add has_largeobject_privilege function.
Date: 2024-09-12 12:55:37
Message-ID: E1sojMH-000kKj-MJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-09-12 18:30:32 pgsql: Make jsonpath .string() be immutable for datetimes.
Previous Message Peter Eisentraut 2024-09-12 11:13:18 pgsql: Remove hardcoded hash opclass function signature exceptions