From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_restore creates public schema?
Date: Thu, 6 Oct 2022 10:17:44 -0500
Message-ID: <33eb3653-26f1-e6c1-dd16-c43ef93f7624@gmail.com> (raw)
In-Reply-To: <2678272.1665067771@sss.pgh.pa.us>
References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com>
<2678272.1665067771@sss.pgh.pa.us>
On 10/6/22 09:49, Tom Lane wrote:
> Ron <ronljohnsonjr@gmail.com> writes:
>> pg_dump 9.6.24
> You realize that that version's been out of support for a year?
Yes, which is why I'm dumping from an EOL cluster, and restoring to a
supported version.
>> Why does pg_restore explicitly create "public" even though public is
>> automatically created when the database is created?
> We fixed that in v11 (see 5955d9341). Evidently the fix requires an
> updated pg_dump more than pg_restore.
Ah.
> However, I believe that only happens with -c, so why are you using both -c and -C?
Because the database might already exist on the target before doing the restore.
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: pg_restore creates public schema?
In-Reply-To: <33eb3653-26f1-e6c1-dd16-c43ef93f7624@gmail.com>
References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com> <2678272.1665067771@sss.pgh.pa.us> <33eb3653-26f1-e6c1-dd16-c43ef93f7624@gmail.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