From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unnecessary code from be_lo_put()
Date: Thu, 25 Apr 2024 08:26:32 +0000
Message-ID: <E1rzuR5-003n2E-H1@gemulon.postgresql.org> (raw)
Remove unnecessary code from be_lo_put()
A permission check is performed in be_lo_put() just after returning
from inv_open(), but the permission is already checked in inv_open(),
so we can remove the second check.
This check was added in 8d9881911f0, but then the refactoring in
ae20b23a9e7 should have removed it.
Author: Yugo NAGATA <nagata@sraoss.co.jp>
Discussion: https://www.postgresql.org/message-id/flat/20240424185932.9789628b99a49ec81b020425%40sraoss.co.jp
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0afa288911d5af7b0f5bd7a1aa09cdea7f02590c
Modified Files
--------------
src/backend/libpq/be-fsstubs.c | 12 ------------
1 file changed, 12 deletions(-)
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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Remove unnecessary code from be_lo_put()
In-Reply-To: <E1rzuR5-003n2E-H1@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