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 1qQIvY-00DV51-B0 for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 02:46:32 +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 1qQIvW-00Bhhy-PF for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 02:46:30 +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 1qQIvV-00Bhhq-Rh for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 02:46:30 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQIvS-002UIU-OP for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 02:46:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 125E4320024A; Sun, 30 Jul 2023 22:46:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 30 Jul 2023 22:46:25 -0400 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:sender:subject:subject:to:to; s=fm2; t= 1690771584; x=1690857984; bh=K4Q2VwsCdzelXf/pc3zwkdCGu3a+7y99t/N Wwi038pc=; b=eHqGLmO/YknxZnkOHbaqJG27gM9ERZZG2i95kEE9riCPqLL4sLp Iot4+rvFyUUcSNqPR0VsyD+wwVivn2OEf1PEd1RWUepGII04tQs4pbzva51U96Km JBSUaCWxnEdxcGJzXl86hTw7tpgLBBz80RVNY6zdpXJRfdlV21AyZ7MdxdTpq6FG ef7BdCfOnhex9AY1SurWHnC8pM1yNJO1Y0cUhnxswya1AWkzoD3AHB+HldV9ucPS wZkcHCrhU03ccDjdmC8vuMODRlRn/W3Gfnh22mKAzguYe+eZEkxOh5lmY2grrKNO W7JEr8HHdPM9U3+hAzJgUuCpMIFSx0yb7vQ== 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:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1690771584; x= 1690857984; bh=K4Q2VwsCdzelXf/pc3zwkdCGu3a+7y99t/NWwi038pc=; b=Y CZ0u7mygYrWXxHIIisV4sKNWnTTECtF5Q0UIdux7P2d/vGm3WVkehzDOkYq75AuY /4mAOBxBKaGQQ3NL0GBxVZOcEPeoo8mOuUE4QuTi5fWtH3/S3DDreaCx/gKkO6Bx Iw0MfzKA/22m5/Bahj3zpMHZ41fBNF16Ro4HRXY5XL4Mk6IYCyLT5tlT9rFIBTB1 iKry8JtfkrDHEo4hxT8eUvEEuZCxhdLFsLIzAiu3tf98XLuph5lLCUtJGHhpHmAy iNnogGY6/v5fRDc5J3r98tlI8mZhxGrVQ4yujt3OW419emBj7HLqCSmDHPOTiAJP jI1WeAjBI0NxSAr6vOm5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrjedvgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedtleevudfgff ejudduhedtvdfgkeelheeivdetuddthfffueegfeefkefhteetfeenucffohhmrghinhep uggvsghirghnrdhorhhgpdgrkhhlrghvvghrrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 Jul 2023 22:46:23 -0400 (EDT) Message-ID: Date: Sun, 30 Jul 2023 19:46:23 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Upgrading To: Amn Ojee Uw , pgsql-general@lists.postgresql.org References: <2426dfb5-63f7-a166-5780-5433da798a9e@gmail.com> <20230730153437.bkogcoh4jyyzwjdz@hjp.at> <931207bb-42f2-3d1a-7b89-c5f3aa1c5b1a@gmail.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <931207bb-42f2-3d1a-7b89-c5f3aa1c5b1a@gmail.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 7/30/23 19:22, Amn Ojee Uw wrote: > Thank you Ron and Peter for taking the time to respond to my call for help. > > In summery, I'd like to use PostgreSQL-15. > > However, since my Debian 12 already has already PostgreSQL-15 installed, > did I inadvertently overwrote PostgreSQL-15 when I installed > PostgreSQL-12? If so, how do I remove PostgreSQL-12 and continue on with > PostgreSQL-15. Short answer 1) No you just created a new cluster. See result of: pg_lsclusters 2) This assumes you don't have any valuable data in cluster. To remove first confirm cluster name below(main) with above command then: pg_dropcluster 12 main Longer answer read: https://wiki.debian.org/PostgreSql and for more in depth explanation two blogs I recently posted: https://aklaver.org/wordpress/2023/06/29/postgres-debian-ubuntu-packagingpart-1/ https://aklaver.org/wordpress/2023/07/01/postgres-debian-ubuntu-packagingpart-2/ > > Please note that I installed using the following command > > /*sudo apt-get -y install postgresql-12*/ > > Thanks in advance. > > > On 7/30/23 11:34 a.m., Peter J. Holzer wrote: >> On 2023-07-30 07:53:54 -0400, Amn Ojee Uw wrote: >>> On my Debian 12, I installed PostgreSQL-12, >> Where did you install that from? >> >> AFAICS, Debian 12 comes with PostgreSQL 15. >> >>> I'd like to upgrade to the latest release of PostgreSQL. So, my >>> question is, what is the best way to upgrade to the next release of >>> PostgreSQL? >> If you stay with the same source, Just installing the new version and >> then invoking pg_upgrade (or a variant - PGDG, Debian, Ubuntu have >> pg_upgradecluster) should do the trick. >> >> If you switch sources, the setup may be sufficiently different that >> pg_dump/pg_restore may be the easiest way. >> >> hp >> -- Adrian Klaver adrian.klaver@aklaver.com