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 1haIX1-0000Sa-8C for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 11:32:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haIWz-0000zr-RG for pgsql-general@arkaria.postgresql.org; Mon, 10 Jun 2019 11:32:05 +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 1haIWz-0000y1-Cj for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2019 11:32:05 +0000 Received: from mail-ot1-x341.google.com ([2607:f8b0:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haIWx-0005A4-6K for pgsql-general@lists.postgresql.org; Mon, 10 Jun 2019 11:32:04 +0000 Received: by mail-ot1-x341.google.com with SMTP id l15so7925966otn.9 for ; Mon, 10 Jun 2019 04:32:02 -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=rZkcEH5ZQfbULwZ+9vKG9xJlgCf9kQLhF+t00nx6pmE=; b=nXb9bGSw+7u4yTgMoGSMCK4/toiV2EkGvTVwcU+5aBeEYGSq0/pUwqMFxmRuXmGxAp qJFEcmpApn4oN+8Ix/9sKhP/SQCFC1liYEfVVdtczpeO/il4ljfuP6d0bHs60dBcCYmM zt1YCmI9X8GEOdTingJPOehUrcu71okssBEWVKegsmNFFEDWAp4NYU6UF1gcUIum/2X/ 3GOXdt+ORTr90mCFQSItvrSKI9TAsTcTsGHzMh4IfcQq9wdcVLr2ItAX+ha7UIiZs+c8 p5ijUGq7VsShYOjWz0iGkerG0tdpNvzGLSZ25kjCXjHn/dh7Cg1+KMp3Ew0VB//kVCUk VeWw== 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=rZkcEH5ZQfbULwZ+9vKG9xJlgCf9kQLhF+t00nx6pmE=; b=UcCt33jl6Zbnnbp6nESWKKBouPL0UvCrsZF+eIxMnDGLyvOdWxhCUcuWdt5LIWwi2W 5CXG/OqFsxXBiA7eGMx2lHp2TvnsC5pLi+631+se/psaKNqgwTKZu4+mdSMhx0I9tX5C KDEHuS4kNfyxnAcCWLJA5emqhTm7korGnWcWXJDzTmKm+TVGj5uaenr9O0wUCqNKonBo avyGc8x2fgsIy/TES17IoyaezhPhG8G539GJxH0p+jpTxqouXulS6mzKfM8IPFsmRlG0 KTlxWhseOrVrKxe4vhCqzUfVA2k0MxmWvtzltlvNxTrKJUbE9HGtLgbqjlpRA45xU37z UhSA== X-Gm-Message-State: APjAAAXPyJwOF9KJ+OLoMh2WVYJUTgf9L6kWFoesjuWjztn0XyFDoFHG EO4qXmFbLVtvlmH71vpwzuzyyroVLwo= X-Google-Smtp-Source: APXvYqwyRzDT+Eavz6i+GIL4DkL8QiAsiqhZgVCGcKWsQ9FDwG3zktmDJdUTXjNvuru0tj3nfQYiVA== X-Received: by 2002:a9d:7001:: with SMTP id k1mr9460986otj.14.1560166322222; Mon, 10 Jun 2019 04:32:02 -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 m32sm4004936otc.55.2019.06.10.04.32.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 04:32:01 -0700 (PDT) Subject: Re: Upgrade from PostgreSQL 9.6 to 11 To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <08157152-f6ce-1158-895f-a23f91c87c68@gmail.com> Date: Mon, 10 Jun 2019 06:32:00 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 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 6/9/19 11:36 PM, Pawan Sharma wrote: > Hello All. > > > What is the best way to upgrade from PostgreSQL 9.6 to PostgreSQL 11 > instead of pg_upgrade. > > - Less downtime. > - Approx database size are 1-3TB. If you really don't want to do pg_upgrade, then a possibility is multi-threaded pg_dump using directory format, followed by a parallel rsync if required, and then multi-threaded pg_restore. -- Angular momentum makes the world go 'round.