pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: pg_dump and search_path
Date: Tue, 9 Jul 2019 07:12:13 -0700
Message-ID: <49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com> (raw)
In-Reply-To: <64b7168a-7fb4-ddb0-f7aa-298638fb64af@gmail.com>
References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org>
	<fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org>
	<6e3e7900f9d470c6927112818c0aec59e1f91ac8.camel@cybertec.at>
	<64b7168a-7fb4-ddb0-f7aa-298638fb64af@gmail.com>

On 7/9/19 6:28 AM, Ron wrote:

> 
> Then should search_path be set at the end of pg_restore?
> 

1) That would be to late for anything happening in the restore.

2) The:

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

only applies to the restore session. After the restore the search_path 
will return to whatever has been configured.



-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com>
Permalink:  ../49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com/
Also on:    postgresql.org/message-id/49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com

 · 

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: adrian.klaver@aklaver.com, ronljohnsonjr@gmail.com
  Subject: Re: pg_dump and search_path
  In-Reply-To: <49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com>
  References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> <fb97c1ee-71c6-f513-1345-e894c8d66547@lucee.org> <6e3e7900f9d470c6927112818c0aec59e1f91ac8.camel@cybertec.at> <64b7168a-7fb4-ddb0-f7aa-298638fb64af@gmail.com> <49d1a724-f79b-56fe-adef-86e27faed5c4@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