Re: pg_dump and search_path - Mailing list pgsql-general

From Adrian Klaver
Subject Re: pg_dump and search_path
Date
Msg-id 49d1a724-f79b-56fe-adef-86e27faed5c4@aklaver.com
Whole thread Raw
In response to Re: pg_dump and search_path  (Ron <ronljohnsonjr@gmail.com>)
List pgsql-general
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



pgsql-general by date:

Previous
From: Achilleas Mantzios
Date:
Subject: Re: SuperUser permission denied when creating table.
Next
From: Tom Lane
Date:
Subject: Re: SuperUser permission denied when creating table.