From 2ffc1537e7a7e37eaec4af81fd2176fc1ae69bce Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 27 Jan 2022 15:15:56 +0100 Subject: [PATCH 1/1] raise PostgreSQL requirement to 9.6 The new code uses the open-ended array notation which is only available sind psql 9.6. --- .github/workflows/ci-tests.yml | 2 +- docs/admin/Faq.md | 2 +- docs/admin/Installation.md | 2 +- module/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index f326c3ca..6d474a2e 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -40,7 +40,7 @@ jobs: ubuntu: [18, 20] include: - ubuntu: 18 - postgresql: 9.5 + postgresql: 9.6 postgis: 2.5 pytest: pytest php: 7.2 diff --git a/docs/admin/Faq.md b/docs/admin/Faq.md index d933a84d..5737cef5 100644 --- a/docs/admin/Faq.md +++ b/docs/admin/Faq.md @@ -79,7 +79,7 @@ When running the import you may get a version mismatch: pg_config seems to use bad includes sometimes when multiple versions of PostgreSQL are available in the system. Make sure you remove the -server development libraries (`postgresql-server-dev-9.5` on Ubuntu) +server development libraries (`postgresql-server-dev-13` on Ubuntu) and recompile (`cmake .. && make`). diff --git a/docs/admin/Installation.md b/docs/admin/Installation.md index 6b63b0d3..19ad2dbb 100644 --- a/docs/admin/Installation.md +++ b/docs/admin/Installation.md @@ -41,7 +41,7 @@ For compiling: For running Nominatim: - * [PostgreSQL](https://www.postgresql.org) (9.5+ will work, 11+ strongly recommended) + * [PostgreSQL](https://www.postgresql.org) (9.6+ will work, 11+ strongly recommended) * [PostGIS](https://postgis.net) (2.2+ will work, 3.0+ strongly recommended) * [Python 3](https://www.python.org/) (3.6+) * [Psycopg2](https://www.psycopg.org) (2.7+) diff --git a/module/CMakeLists.txt b/module/CMakeLists.txt index 6aef6a5a..9684a817 100644 --- a/module/CMakeLists.txt +++ b/module/CMakeLists.txt @@ -1,6 +1,6 @@ # just use the pgxs makefile -foreach(suffix ${PostgreSQL_ADDITIONAL_VERSIONS} "13" "12" "11" "10" "9.6" "9.5" "9.4" "9.3") +foreach(suffix ${PostgreSQL_ADDITIONAL_VERSIONS} "14" "13" "12" "11" "10" "9.6") list(APPEND PG_CONFIG_HINTS "/usr/pgsql-${suffix}/bin") endforeach() -- 2.39.5