[Tile-serving] [openstreetmap/osm2pgsql] Better error messages when extension/schema/tablespace is missing (PR #1788)

Jochen Topf notifications at github.com
Fri Sep 30 09:58:43 UTC 2022


Adds funtions has_extension/schema/tablespace() to check for those things in the database and use them to create nice error messages in the flex output. Because we cache the result in a `static` variable, checking several times is quick.

"Backporting" these checks to the `pgsql` output left for a "good first issue"...
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1788

-- Commit Summary --

  * Add functions to check for tablespaces, schemas and extensions in db
  * Use has_extension/schema/tablespace() to create nicer error messages

-- File Changes --

    M src/CMakeLists.txt (1)
    M src/flex-table.cpp (25)
    M src/flex-table.hpp (8)
    A src/pgsql-capabilities.cpp (66)
    A src/pgsql-capabilities.hpp (21)
    M tests/CMakeLists.txt (1)
    A tests/test-pgsql-capabilities.cpp (39)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1788.patch
https://github.com/openstreetmap/osm2pgsql/pull/1788.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1788
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1788 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220930/115b29d0/attachment.htm>


More information about the Tile-serving mailing list