increase minimum versions for PostgreSQL and PostGIS

This commit is contained in:
Sarah Hoffmann 2024-11-18 09:28:06 +01:00
parent 689bcbd6ea
commit fd1f2bc719
2 changed files with 4 additions and 9 deletions

View File

@ -22,15 +22,10 @@ and can't offer support.
### Software ### Software
!!! Warning
For larger installations you **must have** PostgreSQL 11+ and PostGIS 3+
otherwise import and queries will be slow to the point of being unusable.
Query performance has marked improvements with PostgreSQL 13+ and PostGIS 3.2+.
For running Nominatim: For running Nominatim:
* [PostgreSQL](https://www.postgresql.org) (9.6+ will work, 11+ strongly recommended) * [PostgreSQL](https://www.postgresql.org) (12+ will work, 13+ strongly recommended)
* [PostGIS](https://postgis.net) (2.2+ will work, 3.0+ strongly recommended) * [PostGIS](https://postgis.net) (3.0+ will work, 3.2+ strongly recommended)
* [osm2pgsql](https://osm2pgsql.org) (1.8+, optional when building with CMake) * [osm2pgsql](https://osm2pgsql.org) (1.8+, optional when building with CMake)
* [Python 3](https://www.python.org/) (3.7+) * [Python 3](https://www.python.org/) (3.7+)

View File

@ -57,8 +57,8 @@ def parse_version(version: str) -> NominatimVersion:
NOMINATIM_VERSION = parse_version('4.5.0-0') NOMINATIM_VERSION = parse_version('4.5.0-0')
POSTGRESQL_REQUIRED_VERSION = (9, 6) POSTGRESQL_REQUIRED_VERSION = (12, 0)
POSTGIS_REQUIRED_VERSION = (2, 2) POSTGIS_REQUIRED_VERSION = (3, 0)
OSM2PGSQL_REQUIRED_VERSION = (1, 8) OSM2PGSQL_REQUIRED_VERSION = (1, 8)
# Cmake sets a variable @GIT_HASH@ by executing 'git --log'. It is not run # Cmake sets a variable @GIT_HASH@ by executing 'git --log'. It is not run