pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keith Hickey <kwhickey@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
Date: Wed, 18 Jul 2018 12:07:47 -0400
Message-ID: <14401.1531930067@sss.pgh.pa.us> (raw)
In-Reply-To: <CAAvgwL-qb3Q=KBcZhA_E3Zm0g6E6Pi7m53QCYnw2mw9smvDv7w@mail.gmail.com>
References: <153184074037.1405.15097715315257989847@wrigleys.postgresql.org>
	<17166.1531847498@sss.pgh.pa.us>
	<CAAvgwL8WsLVgQndfcWehZyG8KUva_xfMGih2NaGDWd6Qh4OWhw@mail.gmail.com>
	<11850.1531927071@sss.pgh.pa.us>
	<CAAvgwL-qb3Q=KBcZhA_E3Zm0g6E6Pi7m53QCYnw2mw9smvDv7w@mail.gmail.com>

Keith Hickey <kwhickey@gmail.com> writes:
> But then I saw this config setting embedded at the top of the plain sql
> dump file:

> SELECT pg_catalog.set_config('search_path', '', false);

Right, that's what implements the change in behavior.

> So it looks like pg_dump somehow embeds clearing the search_path into its
> dumps. There doesn't seem to be a way in pg_dump to tell it to do this or
> not to do this.

I argued at the time that there should be an option to let it run with
some other search path, with the security implications being on the user's
head to worry about.  I lost that argument, but I still think that we're
going to have to provide such a feature.  Lately we've been seeing about
one complaint a week about this, as uptake of the locked-down versions
increases.

			regards, tom lane




view thread (6+ messages)

Message-ID: <14401.1531930067@sss.pgh.pa.us>
Permalink:  ../14401.1531930067@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14401.1531930067@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kwhickey@gmail.com
  Subject: Re: BUG #15282: Materialized view with transitive TYPE dependency fails refresh using pg_restore and psql
  In-Reply-To: <14401.1531930067@sss.pgh.pa.us>
  References: <153184074037.1405.15097715315257989847@wrigleys.postgresql.org> <17166.1531847498@sss.pgh.pa.us> <CAAvgwL8WsLVgQndfcWehZyG8KUva_xfMGih2NaGDWd6Qh4OWhw@mail.gmail.com> <11850.1531927071@sss.pgh.pa.us> <CAAvgwL-qb3Q=KBcZhA_E3Zm0g6E6Pi7m53QCYnw2mw9smvDv7w@mail.gmail.com> <14401.1531930067@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