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 1sgtwe-00A1VD-0v for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2024 22:36:48 +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 1sgtwb-00FVh1-FH for pgsql-general@arkaria.postgresql.org; Wed, 21 Aug 2024 22:36:46 +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 1sgtwb-00FVgs-3r for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2024 22:36:45 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sgtwX-000qN4-Ce for pgsql-general@lists.postgresql.org; Wed, 21 Aug 2024 22:36:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 47LMaeSm1896128; Wed, 21 Aug 2024 18:36:40 -0400 From: Tom Lane To: plsqlvids01 plsqlvids01 cc: pgsql-general@lists.postgresql.org Subject: Re: unable to upgrade postgres extensions In-reply-to: References: Comments: In-reply-to plsqlvids01 plsqlvids01 message dated "Wed, 21 Aug 2024 15:14:00 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1896126.1724279800.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 21 Aug 2024 18:36:40 -0400 Message-ID: <1896127.1724279800@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk plsqlvids01 plsqlvids01 writes: > AWS RDS Postgres database on v12.17 is upgraded to v16.1, as per > https://docs.aws.amazon.com/AmazonRDS/latest/PostgreSQLReleaseNotes/post= gresql-extensions.html#postgresql-extensions-16x > am > trying to upgrade pg_cron and pgaudit extensions but it keeps throwing t= he > same error, how to upgrade them? You seem to be assuming that PG extensions have versioning matching the core server. There's no requirement for that, and it doesn't look like these extensions attempt to keep those numbers in sync. The underlying compiled modules (.so files) do need to be updated for each major server version. But if they load and work then that's happened. The "extension version" is just an arbitrary identifier for the version of the extension's SQL-level declarations, which frequently don't need to change for a server update. regards, tom lane