On Monday, December 9, 2024, Ron Johnson <ronljohnso...@gmail.com> wrote:

> On Sat, Nov 30, 2024 at 10:36 PM Adrian Klaver <adrian.kla...@aklaver.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?
>

pg_restore has a mode where it can dump out SQL to a script instead of
directly restoring to the database.

David J.

Reply via email to