From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Li EF Zhang <bjzhangl@cn.ibm.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Make bloom extension trusted, but can not drop with normal user
Date: Tue, 24 Aug 2021 11:15:59 -0400
Message-ID: <344416.1629818159@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYodTMYx45rUkN7BFSNVOaNnhO+kMojspkz_yYo=m0pLg@mail.gmail.com>
References: <OFED9079A9.1B20CF85-ON00258737.003BFB25-00258737.003C9739@ibm.com>
<1851342.1629465971@sss.pgh.pa.us>
<CAKFQuwYodTMYx45rUkN7BFSNVOaNnhO+kMojspkz_yYo=m0pLg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Fri, Aug 20, 2021 at 6:26 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> "Li EF Zhang" <bjzhangl@cn.ibm.com> writes:
>>> Since pg13 support trusted extension, so I changed control file of bloom
>>> and make it trusted.
>> The fact that you can edit the file that way doesn't make it a supported
>> case.
> Why does that matter here though? This isn't a question about a security
> violation, it's one about the basic premise that a trusted extension is
> owned by the creating user and thus can be dropped by them.
My point was that randomly marking stuff as trusted is likely to cause
large problems, therefore we don't support doing it. Per the other
followup, this does work as-expected in v14. I doubt we'd take the risk
of moving superuserness checks around in v13 to make it work there.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, bjzhangl@cn.ibm.com
Subject: Re: Make bloom extension trusted, but can not drop with normal user
In-Reply-To: <344416.1629818159@sss.pgh.pa.us>
References: <OFED9079A9.1B20CF85-ON00258737.003BFB25-00258737.003C9739@ibm.com> <1851342.1629465971@sss.pgh.pa.us> <CAKFQuwYodTMYx45rUkN7BFSNVOaNnhO+kMojspkz_yYo=m0pLg@mail.gmail.com> <344416.1629818159@sss.pgh.pa.us>
* 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