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 1tIG83-00DEiT-OH for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 23:47:00 +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 1tIG80-004sIE-AC for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 23:46:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIG7y-004sI6-Q0 for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 23:46:57 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIG7v-000jd8-47 for pgsql-general@postgresql.org; Mon, 02 Dec 2024 23:46:55 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfout.stl.internal (Postfix) with ESMTP id E9DD31140081; Mon, 2 Dec 2024 18:46:48 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-08.internal (MEProxy); Mon, 02 Dec 2024 18:46:49 -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=fm3; t=1733183208; x=1733269608; bh=rFzXQbzG/WATpHnG7Brx8koVhraKCSibjDdO0H36vrY=; b= GtVUBmUOxTLmrHW8bze5V/RuWzfdz4Gf/pl1eCOEelsb2Lxd0wUXR86+EtL22GsY svkYuR5tFGL7GqoGuwkF8gyZXARfwYxYbd4WzvRFcfE6Hd4hrnCOkd81edXrYiWW x/7+Ew1reWScUUnxlpX8K7rGxG6R/Fujr7CjEb2Ky/8zsiP+8fcACy085LqzkPxZ I4yZk3kgh7Gb/yO28HfiJ9ANGUi2vhMOhL7bpCJhIswwhAwhyDKTlQtJ9QtyRsii yB0X2wSS878+Vx9YibQIo6DvMPYDcm6biQ32bzb69nuZVE4LiFZJg3MdoY7gc5qy YKDJlYL7Fd81KsG7Q9dueA== 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=fm1; t=1733183208; x=1733269608; bh=r FzXQbzG/WATpHnG7Brx8koVhraKCSibjDdO0H36vrY=; b=vXXmM7TrcdEQEVC83 JwQ8TQSz63yLNv7SGCbGtfVgS3MIEzbVWN334bKhar3xH66garoH6WCR80OKDHm6 jtrrycqeSGp5AugS5X1HwBcPEZXkHNulbnnYpe6JB1GCthxgO/jYMBWjX969FAuh QtM65DQUBlh0MMVedp2HWO/PMXfaMujrCGacZfnCfwefp4hE020piUvUEiQRFKpg yWSoZaPXPw5IcGJNJJBNbCNS8ifqybxg6RtGrLCBQH1RIHjvIruP3tTt2sdI3KYZ 0gaWBYWGDv8K3Pz/4zZjAHOLUupJ6fGnsB3jBB/F4DJTKK+NhvNngLqlJICZUvoj +SVvA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddriedtgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtvdejnecu hfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrg hklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekueeigfdtveei leeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehpohhsthhgrh gvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsggprh gtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvshhtvggvmhgs shhvqdhfohhruhhmseihrghhohhordgtohhmpdhrtghpthhtoheprhhonhhljhhohhhnsh honhhjrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghl sehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Dec 2024 18:46:47 -0500 (EST) Message-ID: <32763ce5-76e6-454d-bd64-53db8b2b9af6@aklaver.com> Date: Mon, 2 Dec 2024 15:46:47 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X To: Bharani SV-forum , Ron Johnson , pgsql-general References: <0558ddd4d71641bdb41fa49b2425f73c@safrangroup.com> <98965993.3138805.1731699978332@mail.yahoo.com> <564950518.5117550.1733177884387@mail.yahoo.com> <07ab2d83-ffe5-4bec-9626-22a68f732579@aklaver.com> <273a88dc-4134-47d5-bc19-30ff5f97926c@aklaver.com> <1760813407.5166251.1733182880136@mail.yahoo.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <1760813407.5166251.1733182880136@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/2/24 15:41, Bharani SV-forum wrote: > Ron/Adrian > Thanks for your input. > Your suggestion is > > *option#1* >  ASIS-existing server = EC2 with Community PostgreSQL Ver 13.16.2* > -  ensure to capture all the pre.req meant for ver 15.10 are being  met. >      - enable logical replication tagged to proposed new EC2 server No, logical replication != pg_upgrade process. > (with newer Higher OS Version ). > > > Proposed-new EC2 server (with new Operating System version along >     Postgres Ver 13.16.2 and 15.10 Binaries)* >      - install postgres 13.16.2 binaries >     - have postgres setup on par with existing setup and having proper > logical replication Again, no. >     - install postgres 15.10 binaries >      - ensure to DISABLE auto startup and shutdown of postgres 13.16.2 >       - ensure to DISABLE auto startup and shutdown of postgres 15.10 >     - start postgres db ver 13.16.2 and ensure all are good. no errors > in postgres log file >     -  start performing pg_upgrade step to upgrade postgres from ver > 13.16.2 to 15.10 > > pl Vet the newer steps (revised version). I don't know how much clearer it can be, follow the step by step instructions shown here: https://www.postgresql.org/docs/current/pgupgrade.html "These are the steps to perform an upgrade with pg_upgrade: [...] " > > > Regards > Bharani > > On Monday, December 2, 2024 at 05:48:19 PM EST, Adrian Klaver > wrote: > > > On 12/2/24 14:46, Adrian Klaver wrote: > > On 12/2/24 14:31, Ron Johnson wrote: > >> On Mon, Dec 2, 2024 at 5:18 PM Bharani SV-forum > >> > > wrote: > >> > >>     Team > >>     Pl Help in vetting my steps for Postgres DB upgrade from Ver 13.X to > >>     ver 15.X > >> > >>     Env = EC2 based Community PostgreSQL Ver 13.16.2 > >> > >>     we will be performing upgrade of our EC2 server too along with new > >> OS. > >> > >>     Need help in vetting my steps for Postgres DB upgrade from Ver 13.X > >>     to ver 15.X > >>     *ASIS-existing server = EC2 with Community PostgreSQL Ver 13.16.2* > >>     - ensure to capture all the pre.req meant for ver 15.10 are being > >> met. > >>     - shutdown db. > >>     - take offline full backup (PG_DATA folder alone)  using OS command > >> > >>     *Proposed-new EC2 server (with new Operating System version along > >>     Postgres Ver 15.10 Binaries)* > >>     - install postgres 15.10 binaries > >>     - ensure to DISABLE auto startup and shutdown of postgres 15.10 > >>     -  Restore offline full backup (PG_DATA folder alone) using OS > >> command > >>     -  start performing pg_upgrade step to upgrade postgres from ver > >>     13.16.2 to 15.10 > >> > >>     please guide me, if i have missed any steps in the abovesaid process > >> > >>     To start new DB features, planning to rollout out the following > >>     feature's alone > >>     a) TLE extension for password compliance > >>     b) parallelize vacuum jobs to utilize -j option > >> > >> > >> To migrate from one server to another while upgrading, one must use > >> pg_dump/pg_restore OR Logical Replication. > > > > Really? > > > > Then this: > > > > https://www.postgresql.org/docs/current/pgupgrade.html > > > > > must be random nose. > > Oh yeah, that was smooth. > > Second attempt: > > ... must be random noise. > > > > > >> > >> -- > >> Death to , and butter sauce. > >> Don't boil me, I'm still alive. > >> lobster! > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > -- Adrian Klaver adrian.klaver@aklaver.com