pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Backup and Restore (pg_dump & pg_restore)
Date: Sun, 21 Apr 2019 16:20:03 -0500
Message-ID: <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com> (raw)
In-Reply-To: <286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com>
References: <BL0PR01MB518710A35F4FF2A127563A2A9B200@BL0PR01MB5187.prod.exchangelabs.com>
	<BL0PR01MB51872B41EDB099721B5606E59B210@BL0PR01MB5187.prod.exchangelabs.com>
	<d5e85379-8055-5604-d236-60fced2a7ee4@aklaver.com>
	<3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com>
	<286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com>

On 4/21/19 3:58 PM, Adrian Klaver wrote:
> On 4/21/19 1:42 PM, Ron wrote:
>> 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.
>>
>
>
> 1) Well the public schema was in the dump, so the OP wanted it.
> 2) It also existed in the target database.
> 3) The error let you know 1) & 2)
> 4) To my way of thinking it was a 'no harm, no foul' situation where the 
> error just informed you that the target database took a side track to get 
> where you wanted to be anyway.
>
> I see this sort of thing in monitoring systems e.g. environmental controls 
> all the time. Things get flagged because they wander over set points 
> intermittently. It is technically an error but unless they stay over the 
> line it is just another data point.

Errors need to be fixed.  If the restore can proceed without harm, then it's 
an Informational message.

-- 
Angular momentum makes the world go 'round.





view thread (9+ messages)  latest in thread

Message-ID: <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com>
Permalink:  ../89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com/
Also on:    postgresql.org/message-id/89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com

 · 

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 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: ronljohnsonjr@gmail.com
  Subject: Re: Backup and Restore (pg_dump & pg_restore)
  In-Reply-To: <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com>
  References: <BL0PR01MB518710A35F4FF2A127563A2A9B200@BL0PR01MB5187.prod.exchangelabs.com> <BL0PR01MB51872B41EDB099721B5606E59B210@BL0PR01MB5187.prod.exchangelabs.com> <d5e85379-8055-5604-d236-60fced2a7ee4@aklaver.com> <3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com> <286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com> <89f6196c-3680-8892-42ec-1c0b1fce0c8b@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox