Re: pg_dump without setting search_path - Mailing list pgsql-general

From David G. Johnston
Subject Re: pg_dump without setting search_path
Date
Msg-id CAKFQuwZx5S0Ti0MJTEVcxsq0=UxHUxC6m=LkWBp3PHXoBxtOkg@mail.gmail.com
Whole thread Raw
In response to Re:Re: pg_dump without setting search_path  (gzh <gzhcoder@126.com>)
List pgsql-general
On Wednesday, August 24, 2022, gzh <gzhcoder@126.com> wrote:

When I use pg_dump to export schema from an older version of PostgreSQL 8.2.3 , it adds the following line at the beginning:

SET search_path = public, pg_catalog;

Is it possible set an option where pg_dump will add this line in PostgreSQL 12.5? 

Your observation about the past isn’t going to change the answer (especially if you choose to appeal to 8.2 behavior).  It is a policy choice, not a technical limitation.

David J.

pgsql-general by date:

Previous
From: gzh
Date:
Subject: Re:Re: pg_dump without setting search_path
Next
From: Adrian Klaver
Date:
Subject: Re: pg_dump without setting search_path