pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Christophe Pettus <xof@thebuild.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Seems to be impossible to set a NULL search_path
Date: Tue, 05 Jul 2022 15:13:00 -0400
Message-ID: <1997258.1657048380@sss.pgh.pa.us> (raw)
In-Reply-To: <51E0A66E-C09E-4F6F-8B53-BBB83F810F90@yugabyte.com>
References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com>
	<0c649c8e-dfff-7dea-908a-7b68611fd18f@aklaver.com>
	<CAFj8pRA2fHFe-zqxnuR27MVGE+waKWsPoDAVD3W3iMj9TTFDjw@mail.gmail.com>
	<593de6cc-08df-bbcb-5164-8796db554851@aklaver.com>
	<51E0A66E-C09E-4F6F-8B53-BBB83F810F90@yugabyte.com>

Bryn Llewellyn <bryn@yugabyte.com> writes:
> Thanks, all, for your replies. I'd assumed that the arguments of "set search_path" had to be SQL names. so I tried "". But that caused an error. I didn't try the ordinary empty string because I'd assumed that, as an illegal SQL name, it would be illegal in "set search_path". Hmm...

search_path's value is not a SQL name.  It's a list of SQL names
wrapped in a string ... and the list can be empty.

A bit off topic: I'm not sure how you came to the conclusion that
superusers can't write into pg_catalog.  They can.  But I don't see
much point in being paranoid about whether the contents of pg_catalog
are trustworthy.  If an adversary has already obtained superuser
privileges, he needn't bother with anything as complicated as
trojan-horsing something you might call later.

			regards, tom lane





view thread (31+ messages)  latest in thread

Message-ID: <1997258.1657048380@sss.pgh.pa.us>
Permalink:  ../1997258.1657048380@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1997258.1657048380@sss.pgh.pa.us

 · 

reply

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, bryn@yugabyte.com, adrian.klaver@aklaver.com, pavel.stehule@gmail.com, xof@thebuild.com
  Subject: Re: Seems to be impossible to set a NULL search_path
  In-Reply-To: <1997258.1657048380@sss.pgh.pa.us>
  References: <4B5F24E6-2FF9-4964-BF07-C609DC38E377@yugabyte.com> <0c649c8e-dfff-7dea-908a-7b68611fd18f@aklaver.com> <CAFj8pRA2fHFe-zqxnuR27MVGE+waKWsPoDAVD3W3iMj9TTFDjw@mail.gmail.com> <593de6cc-08df-bbcb-5164-8796db554851@aklaver.com> <51E0A66E-C09E-4F6F-8B53-BBB83F810F90@yugabyte.com> <1997258.1657048380@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