[Tile-serving] [openstreetmap/osm2pgsql] Consolidate pgsql function and trigger creation in a function (#1286)

Jochen Topf notifications at github.com
Thu Oct 8 15:36:25 UTC 2020


Move the code creating the pgsql function and trigger checking the
geometry validity into its own function. This function can create
the pgsql function in the correct schema if one is specified.

The flex output already has schema support, so it uses this function now
to create the function in the right schema. The pgsql output doesn't
have schema support yet, so it doesn't.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Consolidate pgsql function and trigger creation in a function

-- File Changes --

    M src/CMakeLists.txt (1)
    M src/flex-table.cpp (22)
    A src/pgsql-helper.cpp (30)
    A src/pgsql-helper.hpp (11)
    M src/table.cpp (20)
    M tests/CMakeLists.txt (1)
    A tests/data/test_output_flex_schema.lua (24)
    A tests/test-output-flex-schema.cpp (33)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1286
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20201008/6219a8db/attachment.htm>


More information about the Tile-serving mailing list