Upgrading PostgreSQL extensions in RDS for PostgreSQL databases
A PostgreSQL engine upgrade doesn't upgrade most PostgreSQL extensions.
To update an extension after a version upgrade, use the ALTER
EXTENSION UPDATE
command.
Note
For information about updating the PostGIS extension, see Managing spatial data with the PostGIS extension (Step 6: Upgrade the PostGIS extension).
To update the pg_repack
extension, drop the extension and
then create the new version in the upgraded database. For more
information, see pg_repack installationpg_repack
documentation.
To upgrade an extension, use the following command.
ALTER EXTENSION
extension_name
UPDATE TO 'new_version
';
For the list of supported versions of PostgreSQL extensions, see Supported PostgreSQL extension versions.
To list your currently installed extensions, use the PostgreSQL pg_extension
SELECT * FROM pg_extension;
To view a list of the specific extension versions that are available for your
installation, use the PostgreSQL pg_available_extension_versions
SELECT * FROM pg_available_extension_versions;