pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gzh <gzhcoder@126.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: david.g.johnston@gmail.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re:Re: pg_dump without setting search_path
Date: Thu, 25 Aug 2022 13:56:03 +0800 (CST)
Message-ID: <84f48ce.353d.182d3926553.Coremail.gzhcoder@126.com> (raw)
In-Reply-To: <9bff3c2f-9de4-cf2c-ded2-accb27917d50@aklaver.com>
References: <4ee8e848.1efe.182d2e88b8c.Coremail.gzhcoder@126.com>
	<1331174.1661396866@sss.pgh.pa.us>
	<7146ecd6.2920.182d3152247.Coremail.gzhcoder@126.com>
	<9bff3c2f-9de4-cf2c-ded2-accb27917d50@aklaver.com>

Dear all,
 
Thank you so much for your response to my request for information.
I appreciated you taking the time to provide some answers and for getting back to me so promptly.
It made a lot of sense and was exactly what I needed to know.


At 2022-08-25 12:19:03, "Adrian Klaver" <adrian.klaver@aklaver.com> wrote:
>On 8/24/22 20:39, gzh wrote:
>> Hi Tom,
>> 
>> Thank you for your prompt response.
>> 
>> 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?
>> 
>
>No for this reason:
>
>https://wiki.postgresql.org/wiki/A_Guide_to_CVE-2018-1058:_Protect_Your_Search_Path
>
>>>			regards, tom lane
>
>
>-- 
>Adrian Klaver
>adrian.klaver@aklaver.com


view thread (6+ messages)

Message-ID: <84f48ce.353d.182d3926553.Coremail.gzhcoder@126.com>
Permalink:  ../84f48ce.353d.182d3926553.Coremail.gzhcoder@126.com/
Also on:    postgresql.org/message-id/84f48ce.353d.182d3926553.Coremail.gzhcoder@126.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: gzhcoder@126.com, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: pg_dump without setting search_path
  In-Reply-To: <84f48ce.353d.182d3926553.Coremail.gzhcoder@126.com>
  References: <4ee8e848.1efe.182d2e88b8c.Coremail.gzhcoder@126.com> <1331174.1661396866@sss.pgh.pa.us> <7146ecd6.2920.182d3152247.Coremail.gzhcoder@126.com> <9bff3c2f-9de4-cf2c-ded2-accb27917d50@aklaver.com> <84f48ce.353d.182d3926553.Coremail.gzhcoder@126.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