Report this

What is the reason for this report?

Upgrading to postgres 18 with postgis installed

Posted on December 16, 2025

Checking whether I can upgrade my postgres 17 database to postgres 18, I get this error:

upgrade installed extensions before attempting a major version upgrade

Looking at the extensions I have installed, I have:

  • plpgsql 1.0
  • postgis 3.5.0

Any suggestions on ways forward here? The error itself is somewhat cryptic, so I don’t even know if the issue is the versions of these extensions that are installed.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.