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 1hIJIx-0003ps-8i for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2019 20:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIJHw-0000TC-FY for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2019 20:42:12 +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 1hIJHv-0000T5-Rt for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2019 20:42:12 +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 1hIJHt-0001xJ-5w for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2019 20:42:10 +0000 Received: by mail-oi1-x244.google.com with SMTP id x188so7196103oia.13 for ; Sun, 21 Apr 2019 13:42:08 -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=6thx+g9O3gIKIy5kVKqefjypEFR5kfv5S+0h2AuyXAM=; b=qzu243f34dJiB6Bd+QeFJ018ei0VtD0nhJxPDJv8rWcmDcZVgJYxdsT6EmxtCDo2CG 6eQBtT1hH5q1o2Q/eNMuxrEa6es0QDZ37i1TNV7gX71d4waozfb0DDUDK69gnNwbOJWK O1Xb/TDDc4mGfrXw/g//o+uLLHsTKAm+TsVA+xb7b6GLL6gk1pRfV81GBjIej6YyPftv tdpXfrO2pO2hykFR0uI06Es8tB0steXuKyH0YTllVjKxJ6S177k7szDYq77ROdmIJkVF Msg/L6DCTU4WEdON2micA4inm+9qXy1dFqzfd6JzTXsKcSGHSb0kpe0T4zJJReDZRg2h 7FZw== 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=6thx+g9O3gIKIy5kVKqefjypEFR5kfv5S+0h2AuyXAM=; b=AaCZGL04/JBa86xPY3yGnN0/XueXtSEGB7QW3J9Ngnl1IhBj2Y2Tgoj5krDDh6veQp /T9qNXaFPgWcQ98FpyWJtEiCuu5S2DxkCUrZTaAjRJuhgwFL3Z0YbEXbzvqBwN0U0aq/ rlF8/EEdw8V5cyp6T72P4glFDoFDd+63OKfOCGG98McuWWAL+0QNOReb5gMalrnnOTiv n7qcXmY06VrwNAHYagwDNMYETZCDuWZGUQGsFzGZ8l/GbaBJhLMJnCUseQNkgdVvHM0I WO1AmU74hrcku8C3OtzA8xVICQbDiAnAa0e3q905xqSRgQY8+hgD0m8h29X4LAH2RiY0 tl7Q== X-Gm-Message-State: APjAAAUCgP/MUVoMhCuLuUTbcwZiuvYZjC/vQk6ofbNv4M4o4SmUJjdN DOFFAZjpLcqxDaEvqvyWJgtud4Dz00g= X-Google-Smtp-Source: APXvYqwwH532h5lN+hurQmUhAsEqi+QHlFC+Y2Vrs4VBq+98H/yTn2FkGZQ0fL5jcGAyKtJVllG3Fg== X-Received: by 2002:aca:49d6:: with SMTP id w205mr8620868oia.120.1555879327809; Sun, 21 Apr 2019 13:42:07 -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 k73sm5409808otk.14.2019.04.21.13.42.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Apr 2019 13:42:07 -0700 (PDT) Subject: Re: Backup and Restore (pg_dump & pg_restore) To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <3eab0829-f48e-5eb6-3cbd-b64d93e3dc7b@gmail.com> Date: Sun, 21 Apr 2019 15:42:06 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.