Re: Errors when restoring backup created by pg_dumpall

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Errors when restoring backup created by pg_dumpall
Date: 2024-12-10 04:02:59
Message-ID: CANzqJaBVSAEd8eTKeocbqf1v7hHbA6XAY5t63Sh9vhAm62_+Eg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Nov 30, 2024 at 10:36 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
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?

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2024-12-10 04:24:17 Re: Errors when restoring backup created by pg_dumpall
Previous Message Adrian Klaver 2024-12-10 00:31:49 Re: Errors when restoring backup created by pg_dumpall