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 1hIFAu-0001KC-Qa for pgsql-performance@arkaria.postgresql.org; Sun, 21 Apr 2019 16:18:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIFAt-000890-H1 for pgsql-performance@arkaria.postgresql.org; Sun, 21 Apr 2019 16:18:39 +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 1hIFAt-00088t-57 for pgsql-performance@lists.postgresql.org; Sun, 21 Apr 2019 16:18:39 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIFAq-0004Vj-Mn for pgsql-performance@lists.postgresql.org; Sun, 21 Apr 2019 16:18:38 +0000 Received: by mail-wm1-x341.google.com with SMTP id w15so11954256wmc.3 for ; Sun, 21 Apr 2019 09:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XLJiZe+abqT27HMqMV0rhvisiRQf3utMC34avuAMrQs=; b=lvUjInl6Kf0yMi1H/yIjpLg/mAXomd8NyAVB6pn/K96hI8GYf57qDVPLMJxRVPUUkX mEnEU44P9T//ft3D4STTTH3tX9gjsH8P3t5tn9q0t47yA5JwAukgVW8LJMJTURpXJVpb S0lIplohMzT/NGpFv2unT51WYHc4Cxly9av17n2rRUj0OUzgql06vCd1g1cz6fmHpBDz 0jRTBBAjyQnmtYw2gEiHhxJi28BCv0rc/AyiyCBUIqvTWXWqJlGdA82ElvwchoISvJFY 2ZxAruKd/XF3lKwYzKZhB+Vz9i8HU22xjKhbj6lg/X9hEdU8lNyfA5Udo9fvUmS1aNA1 v71w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XLJiZe+abqT27HMqMV0rhvisiRQf3utMC34avuAMrQs=; b=XYMA5HNYHSMlqNl8GlBfWxs+DicOr1WARcWZTXdtcm+u4ASDhayejbd97OQYt6mbb4 itO3PV/zvkZGlzjMiNRAZpXtc/4uv5Dq5Ltkby1yYhmP8pZXjXaKEGK25R7cK/rUmfxM A5UQ5GkNaBZu3D5G1abfvbQpkDHeLut5qnqM7HoOSiwLOn/zadCB8qQoFDU0zZgoi5ST wuh0F72bH2XZQ3xd5m5sW/CaH9Zp0WjSR3I8Ns8XP4SU8dP6LEKSYcrtwlXNWuPurK1e lYRV8Wy0u6Bs/UPz8q3KmZ2usH7hdkzsJcrIJm4UfR5k3lpGxIqgjdbUBcPf0WYLbU5L tjsA== X-Gm-Message-State: APjAAAWxRnnprGTUrke5CCYP602/7kwZYAKDjwExRcPP/YY/bRcfn876 NWH5bhCRNkeId+RX+ChHac6eoQ== X-Google-Smtp-Source: APXvYqyy43bi6FCgOIH6HPKzfm3InclZH6UFyBOoHC9I3zrBP0zU5C8efylPuJU06GhCos8URubTmQ== X-Received: by 2002:a1c:f909:: with SMTP id x9mr9639036wmh.18.1555863515278; Sun, 21 Apr 2019 09:18:35 -0700 (PDT) Received: from localhost (ip-86-49-243-43.net.upcbroadband.cz. [86.49.243.43]) by smtp.gmail.com with ESMTPSA id o6sm21901549wre.60.2019.04.21.09.18.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 21 Apr 2019 09:18:26 -0700 (PDT) Date: Sun, 21 Apr 2019 18:18:24 +0200 From: Tomas Vondra To: Daulat Ram Cc: "pgsql-performance@lists.postgresql.org" Subject: Re: Backup and Restore (pg_dump & pg_restore) Message-ID: <20190421161824.aybvezdn6lzsdj2a@development> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-1444-295967 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sat, Apr 20, 2019 at 06:50:47PM +0000, 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; > > How is this related to performance? Please send it to pgsql-general, and include information about how you created the dump. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services