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 1sgtWL-009sRl-1z for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2024 22:09:37 +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 1sgtWI-00FPIL-MX for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2024 22:09:35 +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 1sgtWI-00FPIA-1h for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2024 22:09:34 +0000 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgtWF-000nMf-Er for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2024 22:09:33 +0000 Received: from phl-compute-04.internal (phl-compute-04.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 41F72114724A; Wed, 21 Aug 2024 18:09:30 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Wed, 21 Aug 2024 18:09:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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 :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724278170; x= 1724364570; bh=Uyk9MPOZe8RWjIRAlyMU+EtCRvQcd9aQCDrgaG3q5aQ=; b=P TgxSkVat+xosgJ0UmeR/LO6X1UsRNqO1C2gAZYhQaqOEi2vimx2Oos+XTpJTvoN+ ryP+b2pjm2j8eUR84AJZa33AEj5AqaLnXUdiD2++R9RijVRU1/A/suaw7JEx7rIu MyzZvjjJ9yPar+TMqa7m07/NM516DMepprTSgKXjxnAz6hFuEn5Nz2Nk5oY4oYGP RYuTO+hMLYYtALbYYjHXf+ko3kQFO95Uhajmazt1ecsCrJ98udP1sy5DFRxW8V3h mHLh9WmTCPMmrGYjU3b5ZkT7w+jKZAwSRQmCst+jr3ArYvkWQGJn3pBwaCyqAXMf r5Um4SlyzhpzOO0zga+7A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudduledgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepueegffekuedutdfhteehgfei ueeiheevheejieekvdekieehhfekkedvkefhiedvnecuffhomhgrihhnpegrmhgriihonh drtghomhdpvghnthgvrhhprhhishgvuggsrdgtohhmpdhlfihnrdhnvghtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgvse grlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepphhlshhqlhhvihgushdtudesghhmrghilhdrtghomhdprh gtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhq lhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Aug 2024 18:09:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1724278166; bh=sTnMoLU7i72w8hosZL2o4xxmYRgTVU0zGRScS/mknXo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=VxJcINDbTv/uQ3XL2k5VsfiDMfvFoCUL13Oh4RVwMVooiXYUvp4bgWMqzKfNipVRd 9vXiZjTKlcMJMsPX9u1otmjm9QdxP+t/lvEj4vCFr5eKYEMqCl82SoVAys1TDrBQrd lOUM9HkrgU9BGoF8CQhzmQgzDxgRjrYpZa7rQySFiS6k6F7MU1dm26Zn4oI2sj8j74 LPcmB2n2xiU70N+zIyZGIQBzSNpM5dDzNdWfCwFyIXOliBNY3daNvsZgxERsDWsNlW c0Hsuynf3tc3IFyXrXdYopOYCbo5japq4wN3cqn1EEXXDMvp5CU9u7Je9xsCV63vS3 UUKNdtrUKEclg== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 24B9BE9; Wed, 21 Aug 2024 18:09:26 -0400 (-04) Date: Wed, 21 Aug 2024 18:09:26 -0400 From: Alvaro Herrera To: plsqlvids01 plsqlvids01 Cc: pgsql-general@lists.postgresql.org Subject: Re: unable to upgrade postgres extensions Message-ID: <202408212209.zvlhbyhzubiz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Aug-21, plsqlvids01 plsqlvids01 wrote: > AWS RDS Postgres database on v12.17 is upgraded to v16.1, as per > https://docs.aws.amazon.com/AmazonRDS/latest/PostgreSQLReleaseNotes/postgresql-extensions.html#postgresql-extensions-16x > am > trying to upgrade pg_cron and pgaudit extensions but it keeps throwing the > same error, how to upgrade them? > postgres=> select * from pg_available_extensions where name in > ('pgaudit','pg_cron'); > name | default_version | installed_version | > comment---------+-----------------+-------------------+--------------------------------- > pgaudit | 16.0 | 1.4.3 | provides auditing functionality > pg_cron | 1.6 | 1.6 | Job scheduler for PostgreSQL > > postgres=> ALTER EXTENSION pgaudit update to "16.0"; > ERROR: extension "pgaudit" has no update path from version "1.4.3" to > version "16.0" That sounds like an RDS problem, so you should be talking to Amazon support. But maybe see in "select * from pg_available_extension_versions" if the versions their docco claims are available, actually are. Also, the fact that a version is available does not automatically mean that an upgrade path exists; you may need to do the upgrade in multiple jumps, for instance for pgAudit go from 1.4.3 to 1.6.2 first, then to 1.7.0 finally to 16.0. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "How strange it is to find the words "Perl" and "saner" in such close proximity, with no apparent sense of irony. I doubt that Larry himself could have managed it." (ncm, http://lwn.net/Articles/174769/)