Re: unable to upgrade postgres extensions - Mailing list pgsql-general

From Tom Lane
Subject Re: unable to upgrade postgres extensions
Date
Msg-id 1896127.1724279800@sss.pgh.pa.us
Whole thread Raw
In response to unable to upgrade postgres extensions  (plsqlvids01 plsqlvids01 <plsqlvids01@gmail.com>)
List pgsql-general
plsqlvids01 plsqlvids01 <plsqlvids01@gmail.com> writes:
> 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?

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



pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: unable to upgrade postgres extensions
Next
From: Lok P
Date:
Subject: Re: Column type modification in big tables