From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: pg_restore creates public schema?
Date: Thu, 06 Oct 2022 10:49:31 -0400
Message-ID: <2678272.1665067771@sss.pgh.pa.us> (raw)
In-Reply-To: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com>
References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com>
Ron <ronljohnsonjr@gmail.com> writes:
> pg_dump 9.6.24
You realize that that version's been out of support for a year?
> 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. However, I believe that only
happens with -c, so why are you using both -c and -C?
regards, tom lane
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: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
Subject: Re: pg_restore creates public schema?
In-Reply-To: <2678272.1665067771@sss.pgh.pa.us>
References: <9a423047-24d9-1643-c91e-6c36508b987e@gmail.com> <2678272.1665067771@sss.pgh.pa.us>
* 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