This guide is mainly based on Arch's wiki, with some additions:
- I couldn't upgrade the database because the upgrade tool needs the
postgis-2.4.so
file - The created cluster could not be used to upgrade from the old data because the locale was set to 'C' (needed to add
--locale=en_US.UTF-8
) - The upgrade tool checks if the the new postgresql installation has a compatible postgis version. That means we need postgis 2.4 for postgresql 11. Unfortunately, we cannot install it over the package manager, instead we need to compile it from source.
# Stop currently running server
systemctl stop postgresql.service
# Install new packages