From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
To: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Seems to be impossible to set a NULL search_path
Date: Tue, 5 Jul 2022 11:18:29 -0700
Message-ID: <0c649c8e-dfff-7dea-908a-7b68611fd18f@aklaver.com> (raw)
In-Reply-To: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com>
References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com>
On 7/5/22 11:12 AM, Bryn Llewellyn wrote:
> The section "Writing SECURITY DEFINER Functions Safely":
>
> https://www.postgresql.org/docs/current/sql-createfunction.html#id-1.9.3.67.10.2
>
> Finally, what do you think of a possible future enhancement to allow setting a null search_path?
>
set search_path = '';
show search_path ;
search_path
-------------
""
\d
Did not find any relations.
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, bryn@yugabyte.com
Subject: Re: Seems to be impossible to set a NULL search_path
In-Reply-To: <0c649c8e-dfff-7dea-908a-7b68611fd18f@aklaver.com>
References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com> <0c649c8e-dfff-7dea-908a-7b68611fd18f@aklaver.com>
* 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