Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8mvB-0003Ma-Ji for pgsql-general@arkaria.postgresql.org; Tue, 05 Jul 2022 18:05:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8mvA-0008Qu-Gm for pgsql-general@arkaria.postgresql.org; Tue, 05 Jul 2022 18:05:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8mv9-0008Qd-0K for pgsql-general@lists.postgresql.org; Tue, 05 Jul 2022 18:05:12 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8mv6-0005nm-9E for pgsql-general@postgresql.org; Tue, 05 Jul 2022 18:05:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 19B47320094B; Tue, 5 Jul 2022 14:05:06 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 05 Jul 2022 14:05:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1657044305; x= 1657130705; bh=TQO5as98o7MydJxaYGwfFKKPX0EH67qzjgPF5Z2t0i0=; b=w VBKGTxITZleWLWVVXOe+SQII0VV/qpYKhcjkvExt48Tv+1QAxJWBP80zkDBBErYw XYC5nwbUruXf+NaI7USMi+zlA+wGXfo6z+texk0wojxdUz2q2G942jGSZ8F4mXI3 IgscSmg+Z+7IVYU/rUsfQgEmteyCEJjMNM7R9pWdQW3ApZmG99wwSGeGmfFEJE81 GQt7BvsG3ap/31m61ESI5gl7GR6ZMV1tiq5cmg9w7XksSfrz82C48ZQMdz7jEDtp A+EIFgTIAecO5rjtWlbEoPTsDcq1EKBEEEV6A5UkbHcMDcbBcpVBxEMA6L3yVkKB ePxTZposSAuwWOdCAAX1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1657044305; x= 1657130705; bh=TQO5as98o7MydJxaYGwfFKKPX0EH67qzjgPF5Z2t0i0=; b=J U7fNaHhFf4EjxhhBTufmdWPtmUpeE0h2ddJoSfAcbZnshk14SiGSokotBUbduyS9 7RF+nHXQ1R05quTqUlqd4yq12CU5WyGcUPrTK4fpsnRAue2EXUY87ieviwVWCdCg rK5ur2H99BEonRnOqsgSN+qxb7lmPCn6FVqOdRtZqy1/O2E7qJRjslSKuk5AwKpM YDcYHz7qflGfjCGh4y/y4rCQZS4NXjx5r0p01i4gcz2a3y309afm8qIEVDDp6pgc njOiiaBYQfYRpJRxF6a83kVtdbJ9KBZAYGgUdqhDQIfGjPje9Y9TJ7xZf/sNhTxm a/fgczFa46s9JGXrBcOig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeiuddguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfevfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegu rhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmqeenucggtffrrghtthgvrhhnpefgvedujeeiudfhudeiieeukedtveeiieeigeeh udekieefhefgieeggedvveevveenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorh hgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggu rhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Jul 2022 14:05:05 -0400 (EDT) Subject: Re: How to upgrade postgres version 8 to 13 To: shashidhar Reddy Cc: pgsql-general References: <27c905f1-3388-8691-8066-a94db839a09c@aklaver.com> From: Adrian Klaver Message-ID: Date: Tue, 5 Jul 2022 11:05:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/5/22 10:56 AM, shashidhar Reddy wrote: > Down time 10 to 15 hrs > Hardware specs are also not sure for now as it is client machine. This is going to be a difficult task for the following reasons: 1) pg_upgrade(https://www.postgresql.org/docs/current/pgupgrade.html) only goes back to 8.4. So you will need to use other tools if you want to emulate it. 2) 8.2 --> 13 represent 14 years of changes. In particular the implicit type cast changes that happened in 8.3. You will need to testing to determine whether what you are doing in 8.2 is going to work in 13. Also why version 13? 3) The size of the data set. In other words there is going to be a lot of preliminary work and testing that is going to need to be done before you even start the transfer. The first of that is determining what your setup is. My guess is you will end up doing this in stages of using intervening Postgres versions. > > On Tue, 5 Jul, 2022, 11:22 pm Adrian Klaver, > wrote: > > On 7/5/22 10:48 AM, shashidhar Reddy wrote: > > Reply to list also > > Ccing list > > > Hello Adrian, > > > > Os is UbuntuĀ  not sure about the version I am looking for the low > > downtime method it may be on same or different machine but same > machine > > is preferable > Hardware specs? > > How low is low for downtime? > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com