Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8n8c-0003y1-Si for pgsql-general@arkaria.postgresql.org; Tue, 05 Jul 2022 18:19:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8n8b-0001sv-Ou for pgsql-general@arkaria.postgresql.org; Tue, 05 Jul 2022 18:19:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8n8b-0001rf-EE for pgsql-general@lists.postgresql.org; Tue, 05 Jul 2022 18:19:05 +0000 Received: from smtp112.ord1d.emailsrvr.com ([184.106.54.112]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8n8Z-0005vF-Fr for pgsql-general@lists.postgresql.org; Tue, 05 Jul 2022 18:19:05 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp15.relay.ord1d.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 5E31E6020B; Tue, 5 Jul 2022 14:19:00 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Seems to be impossible to set a NULL search_path From: Christophe Pettus In-Reply-To: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com> Date: Tue, 5 Jul 2022 11:18:36 -0700 Cc: pgsql-general list X-Mailbutler-Message-Id: 24BF4B7A-A58B-4309-A2E9-AB91746F080A Content-Transfer-Encoding: quoted-printable Message-Id: References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com> To: Bryn Llewellyn X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: 1819e2c1-7ad9-48cf-974a-e390bd5b919e-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 5, 2022, at 11:12, Bryn Llewellyn 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=3D# show search_path; search_path =20 ----------------- "$user", public (1 row) xof=3D# select * from t; i | d1 | d2=20 ---+----+---- (0 rows) xof=3D# set search_path=3D''; SET xof=3D# show search_path; search_path=20 ------------- "" (1 row) xof=3D# select * from t; ERROR: relation "t" does not exist LINE 1: select * from t; ^ xof=3D#=20