pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ryan Lambert <ryan@rustprooflabs.com>
Cc: Igal @ Lucee.org <igal@lucee.org>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_dump and search_path
Date: Wed, 10 Jul 2019 14:11:18 -0700
Message-ID: <4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@aklaver.com> (raw)
In-Reply-To: <CAN-V+g9sopbD5uuRhYieHroqumHWJewRV4HKzByZOegxSh+ZuQ@mail.gmail.com>
References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org>
	<94e28e8c-e5cf-f0b5-a148-43452446d9ec@aklaver.com>
	<fbe59d2f-79ce-1b8e-c96a-ef665f18f747@lucee.org>
	<126613fd-e0a9-c79f-a400-028107214439@aklaver.com>
	<09136454-d905-7cce-d0cd-38158482e269@lucee.org>
	<9660facc-0bdd-d7fd-8316-02a45a509dd5@aklaver.com>
	<CAN-V+g9sopbD5uuRhYieHroqumHWJewRV4HKzByZOegxSh+ZuQ@mail.gmail.com>

On 7/10/19 1:19 PM, Ryan Lambert wrote:
> I had a similar problem and was able to being the command with the 
> search_path to work around it.  I did this on Linux and it looks like 
> you are on Windows but I maybe you can do something similar that will work?
> 
> PGOPTIONS='-c search_path=staging, transient, pg_catalog'

Not sure how that worked:

export PGOPTIONS="-c  search_path=public"

psql -d test -U postgres

psql (11.4)
Type "help" for help.

test_(postgres)# show search_path;
  search_path
-------------
  public

test_(postgres)# SELECT pg_catalog.set_config('search_path', '', false);
  set_config
------------

(1 row)

test_(postgres)# show search_path;
  search_path
-------------

(1 row)



> 
> 
> *Ryan Lambert*
> RustProof Labs
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@aklaver.com>
Permalink:  ../4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@aklaver.com/
Also on:    postgresql.org/message-id/4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@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, ryan@rustprooflabs.com, igal@lucee.org
  Subject: Re: pg_dump and search_path
  In-Reply-To: <4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@aklaver.com>
  References: <1f5111a5-e49e-e44a-67df-b367e5d31fdf@lucee.org> <94e28e8c-e5cf-f0b5-a148-43452446d9ec@aklaver.com> <fbe59d2f-79ce-1b8e-c96a-ef665f18f747@lucee.org> <126613fd-e0a9-c79f-a400-028107214439@aklaver.com> <09136454-d905-7cce-d0cd-38158482e269@lucee.org> <9660facc-0bdd-d7fd-8316-02a45a509dd5@aklaver.com> <CAN-V+g9sopbD5uuRhYieHroqumHWJewRV4HKzByZOegxSh+ZuQ@mail.gmail.com> <4f8a9e35-0797-ddf8-ba1a-68b65eb7d2ec@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