Remove unnecessary code rom be_lo_put()

From: Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Remove unnecessary code rom be_lo_put()
Date: 2024-04-24 09:59:32
Message-ID: 20240424185932.9789628b99a49ec81b020425@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I noticed that a permission check is performed in be_lo_put()
just after returning inv_open(), but teh permission should be
already checked in inv_open(), so I think we can remove this
part of codes. I attached a patch for this fix.

Regards,
Yugo Nagata

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

Attachment Content-Type Size
remove_unnecessary_code_from_be_lo_put.patch text/x-diff 825 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2024-04-24 10:07:17 Re: Why does pgindent's README say to download typedefs.list from the buildfarm?
Previous Message Alexander Korotkov 2024-04-24 09:58:11 Re: [PATCH] Improve amcheck to also check UNIQUE constraint in btree index.