Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9VVi-00Aaai-26 for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2024 20:23:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t9VVf-00D6C2-3M for pgsql-general@arkaria.postgresql.org; Fri, 08 Nov 2024 20:23:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9VVe-00D6Bt-4I for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2024 20:23:11 +0000 Received: from fout-a2-smtp.messagingengine.com ([103.168.172.145]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t9VVb-000rLQ-2P for pgsql-general@lists.postgresql.org; Fri, 08 Nov 2024 20:23:09 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.phl.internal (Postfix) with ESMTP id 59C6E1380282; Fri, 8 Nov 2024 15:23:05 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Fri, 08 Nov 2024 15:23:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1731097385; x=1731183785; bh=o+7X0BXtFwj7DwpAY52PvvUYnxQEjZbRt/qZAr5D3Ik=; b= xOOVoe2k/DMdNQeD1JG3u0SzMTJp/s4J3WaZKR7f6wQyJEVb2VRHoj33hJRm/EH2 U9LL7hNag571/wRPAvyF1HAN0hTkcsrMNV1eZvR28bEM3xDPYaX1/9atTGG9c9Xb gtbfpJ964EOtC2W9G0eqaOMupRtQ2YsWVNAjexzFzE3s6GPrL5kxXMTEmq4k6qaM fgjQWu2r8Gwg/8eb7/lJZjlvGvungwVhiW428KdBwASTzUK1Rn3+hAEv/rkpeCzQ txNtd+EuFr+wMk3cfOVra3rVXc4oUHt3UBzrVT7MpynUrBF+8fAtSbBKePLLGmLx S9VHwlYK9ol9vO1sf8y6+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1731097385; x=1731183785; bh=o +7X0BXtFwj7DwpAY52PvvUYnxQEjZbRt/qZAr5D3Ik=; b=ebINgsO0KbTRVYzFX KIlQOVXobLWnHn+xbOtQjhw/axE8Es9ifWUuegqh0IVwUzYNr+Z0R7mt1ppH9+/e 9MK+UxLMF/PAUshKoMy00gBFVAATqiCknV4lS/2YKzfXgCAX6ak1gPWxItEuUzq9 2V3+b/QO626FQvW67Vym1291jfi8G4PKgPIzbQA1lCsVo/cgObp3SbiwOCmWDPeL IeBcOWZ/EllCXRP84CJmjjboJeCb43biMLZGpbgIhLwS0FLtTiYnQSBGmXvk1mGL vdswy/etiz4OHozCP9vyYeaN1azIZ+rI3TSVoCipDu0+9bA4tD7l04jEo0711iX1 /MbSg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrtdeigddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeekfeehuddvjeeigfeifeej tdduudffledvfeelheeftdeiffeugfdvkeelgedtvdenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspg hrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepthhhrghkrghr vghjrgihvghshhejtddtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqgh gvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Nov 2024 15:23:04 -0500 (EST) Message-ID: Date: Fri, 8 Nov 2024 12:23:03 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Can we directly upgrade postgresql from 13 to 15.4 To: jayesh thakare , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11/8/24 10:12, jayesh thakare wrote: > Hi all, > > Can we upgrade postresql from 13 to 15.4 directly? > Can we upgrade postgresql from 13 to 16 directly? Yes either dump/restore: https://www.postgresql.org/docs/current/app-pgdump.html https://www.postgresql.org/docs/current/app-pgrestore.html Or pg_upgrade: https://www.postgresql.org/docs/current/pgupgrade.html Pay particular attention to the Notes section at each of the above links > > > Ideally how many major version can we jump to from older version ? Some of that is covered in the Notes section. You should also look at the Release Notes: https://www.postgresql.org/docs/release/ The important ones are for Postgres version 10+ those for X.0 where X is the major release e.g. 10, 11, 12, etc. For 9- the release to look for is X.X.0 where X.X is 9.6, 9.5, 9.4, etc. These will show you the major changes that you might need to deal with. For example in Postgres 15 the langauges plpythonu/plpython2u where removed, so if you are using plpython* functions you need to make sure they have been migrated to plpython3u. > > Regards, > Jayeshthakare > 8828986182 > Postgresql dba | Clover Infotech -- Adrian Klaver adrian.klaver@aklaver.com