Re: Add has_large_object_privilege function

From: Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
To: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Add has_large_object_privilege function
Date: 2024-09-12 10:51:33
Message-ID: 20240912195133.83e3d2f5c159b443c83eadd5@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 12 Sep 2024 19:07:22 +0900
Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote:

>
>
> On 2024/09/10 17:45, Yugo NAGATA wrote:
> > On Mon, 9 Sep 2024 22:59:34 +0900
> > Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote:
> >
> >>
> >>
> >> On 2024/07/02 16:34, Yugo NAGATA wrote:
> >>> So, I would like to propose to add
> >>> has_large_object_function for checking if a user has the privilege on a large
> >>> object.
> >>
> >> +1
> >
> > Thank you for your looking into this!
> > I've attached a updated patch.
>
> Thanks for updating the patches! LGTM, except for a couple of minor things:
>
> +okui chiba * has_largeobject_privilege_id
>
> "okui chiba" seems to be a garbage text accidentally added.
>
> + * role by Oid, large object by id, and privileges as AclMode.
>
> "Oid" seems better than "id" in "large object by id".

Thank you for pointing out it.
I've fixed them and attached the updated patch, v3.

Regards,
Yugo Nagata

--
Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>

Attachment Content-Type Size
v3-0002-Add-has_largeobject_privilege-function.patch text/x-diff 15.3 KB
v3-0001-Deduplicate-codes-of-LargeObjectExists-and-mvLarg.patch text/x-diff 4.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2024-09-12 10:54:53 Re: Disallow altering invalidated replication slots
Previous Message Joe Conway 2024-09-12 10:48:56 Re: CI, macports, darwin version problems