Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIJsm-0005IL-CK for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2019 21:20:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIJsk-0001Cc-51 for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2019 21:20:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIJsj-0001CV-HZ for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2019 21:20:13 +0000 Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIJsc-0002ir-Bf for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2019 21:20:11 +0000 Received: by mail-oi1-x244.google.com with SMTP id l203so7268712oia.3 for ; Sun, 21 Apr 2019 14:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=XJn+Et9eU8K4PzrpKvUOYwB52AwfFvY7+mheq4uG6Xo=; b=KL7I7Aaq1yVvtgVQ1lwT3srKINsyYMfKshZdXQJ2fdL/f8+HP5myTkNR9ggrIKTVTl VVXQ4xVIE0z1E+gHCeYkoNQtQTY6G6XJYPX6MRUQKouf0jclyyb+D0a8uiUyNbNhZ2tV 1Xpoe4Abk3MG05fAS5BXb0MfiHI7I8J+0UGbKy2TJZ6fSZy9q9GB8KPg1P+veswDOqxk 8eDd/DZ7x7XfS4Qzi/kEDhWzjoqPXtIgxd4TO//5UHykiiHsjSLlEMBLMB3/1y+jYws9 P8MsZ3m0oGyNx1crH49gmsFT3lQUUBGcFMJszvUpLh1jNsx8EI5DJ57bv/NIYRV1+8nL npUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=XJn+Et9eU8K4PzrpKvUOYwB52AwfFvY7+mheq4uG6Xo=; b=MWMZIWTS83EqibjrTlWsdPrZ9N8C+a8O8KnZ5S1sWlnI25sjDjstAEMJxFOLPkJQES 8qeg1m1WOrAGUDzqZeUzml51flVeu0hlfpkAPxquWK4J6fnrsWMVDr+3d1KdMy7woktt Z9kFdk37wJ4nej4P01Rk6bKUM0gD24B2ahaVyrpQMwvZdh3Yp3JrMSokCd9kquHX5I/j IMXT10154mnGaPAyFbexo9gL3F1c82XegJqAyrPpqvtrBCZzfdriBZplCj55oJPt0KGs RpmTVZrh1f4qOYiMxP8IxnfrGW7Hibgn5LfN6B90e17qdABywXNpGshTK3lOmizxD0vQ V3Jw== X-Gm-Message-State: APjAAAWsuPMBnB2P1dzLA3Yf5YpnLYiQoLMPKuFnZ189E3xvktUjLNyv bTiBlkknIY+edTVCK7MarkxpQ5xpews= X-Google-Smtp-Source: APXvYqzVoO3rbaX1+j57pmyZFZnNjeUcThErO18PH/cc70gCOSZjqp3LQ3rv+jK/FHvNF2IYaUJrCQ== X-Received: by 2002:aca:f511:: with SMTP id t17mr8002067oih.115.1555881605536; Sun, 21 Apr 2019 14:20:05 -0700 (PDT) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id o203sm4788336oia.20.2019.04.21.14.20.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 14:20:04 -0700 (PDT) Subject: Re: Backup and Restore (pg_dump & pg_restore) To: pgsql-general@lists.postgresql.org References: <3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com> <286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com> From: Ron Message-ID: <89f6196c-3680-8892-42ec-1c0b1fce0c8b@gmail.com> Date: Sun, 21 Apr 2019 16:20:03 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <286599d3-429e-a9b9-bf9d-a92e6dbcb403@aklaver.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.