public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-general <[email protected]>
Subject: Re: Errors when restoring backup created by pg_dumpall
Date: Mon, 9 Dec 2024 23:54:25 -0500
Message-ID: <CANzqJaA85SC0SVA7KKJKxPXC3qUog9mXVErQWfZz+arvqvtCsg@mail.gmail.com> (raw)
In-Reply-To: <CAKFQuwY4xnqN7YgASFgwX9ZWJYZO4R3-yQowyv87EnYC0JAJbA@mail.gmail.com>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<CAKFQuwaB5GuUNuyiUbS0ah-LYXepHLPnOHrP7g8RMz8ywOm3zQ@mail.gmail.com>
	<[email protected]>
	<CAKFQuwYQUequkYVS8SLgC1L0TOdWNK=xVyxnPD9RPPwfvYRFSQ@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<CANzqJaBVSAEd8eTKeocbqf1v7hHbA6XAY5t63Sh9vhAm62_+Eg@mail.gmail.com>
	<CAKFQuwY4xnqN7YgASFgwX9ZWJYZO4R3-yQowyv87EnYC0JAJbA@mail.gmail.com>

On Mon, Dec 9, 2024 at 11:24 PM David G. Johnston <
[email protected]> wrote:

> On Monday, December 9, 2024, Ron Johnson <[email protected]> wrote:
>
>> On Sat, Nov 30, 2024 at 10:36 PM Adrian Klaver <[email protected]>
>> wrote:
>> [snip]
>>
>>> In future schema qualify all references.
>>>
>>> For now in the dump file you could search for
>>>
>>> SELECT pg_catalog.set_config('search_path', '', false);
>>>
>>> and set to
>>>
>>> SELECT pg_catalog.set_config('search_path', 'public', false);
>>>
>>
>> What if this had been a pg_dump --format={custom,directory} backup?
>>
>
> pg_restore has a mode where it can dump out SQL to a script instead of
> directly restoring to the database.
>

That Would Be Very, Very Bad if this were a database big enough to have
required a multi-threaded dump.

-- 
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!


view thread (5+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Errors when restoring backup created by pg_dumpall
  In-Reply-To: <CANzqJaA85SC0SVA7KKJKxPXC3qUog9mXVErQWfZz+arvqvtCsg@mail.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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox