Re: Backup and Restore (pg_dump & pg_restore)

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Backup and Restore (pg_dump & pg_restore)
Date: 2019-04-21 20:42:06
Message-ID: 3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On 4/21/19 1:46 PM, Adrian Klaver wrote:
> On 4/21/19 9:35 AM, Daulat Ram wrote:
>> Hello Team,
>>
>> We are getting below error while migrating pg_dump from Postgresql 9.6 to
>> Postgresql 11.2 via pg_restore in docker environment.
>>
>> 90d4c9f363c8:~$ pg_restore -d kbcn "/var/lib/kbcn_backup19"
>>
>> pg_restore: [archiver (db)] Error while PROCESSING TOC:
>>
>> pg_restore: [archiver (db)] Error from TOC entry 3; 2615 2200 SCHEMA
>> public postgres
>>
>> pg_restore: [archiver (db)] could not execute query: ERROR: schema
>> "public" already exists
>>
>> Command was: CREATE SCHEMA public;
>
> Expected as the public schema is there by default. It is an informational
> error, you can ignore it.

"Informational error" is a contradiction in terms.

--
Angular momentum makes the world go 'round.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2019-04-21 20:58:16 Re: Backup and Restore (pg_dump & pg_restore)
Previous Message Susan Hurst 2019-04-21 19:33:16 Display View Columns and Their Source Tables and Columns

Browse pgsql-performance by date

  From Date Subject
Next Message Adrian Klaver 2019-04-21 20:58:16 Re: Backup and Restore (pg_dump & pg_restore)
Previous Message Tom Lane 2019-04-21 19:25:51 Re: Backup and Restore (pg_dump & pg_restore)