From: Christophe Pettus <xof@thebuild.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: 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:36 -0700
Message-ID: <C4DB0B54-B5DF-4E58-BB09-26717E8F7AE2@thebuild.com> (raw)
In-Reply-To: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com>
References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com>
> On Jul 5, 2022, at 11:12, Bryn Llewellyn <bryn@yugabyte.com> wrote:
> Finally, what do you think of a possible future enhancement to allow setting a null search_path?
You use the empty string, rather than NULL, but it works right now:
xof=# show search_path;
search_path
-----------------
"$user", public
(1 row)
xof=# select * from t;
i | d1 | d2
---+----+----
(0 rows)
xof=# set search_path='';
SET
xof=# show search_path;
search_path
-------------
""
(1 row)
xof=# select * from t;
ERROR: relation "t" does not exist
LINE 1: select * from t;
^
xof=#
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: xof@thebuild.com, bryn@yugabyte.com
Subject: Re: Seems to be impossible to set a NULL search_path
In-Reply-To: <C4DB0B54-B5DF-4E58-BB09-26717E8F7AE2@thebuild.com>
References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com> <C4DB0B54-B5DF-4E58-BB09-26717E8F7AE2@thebuild.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