[Tile-serving] [openstreetmap/osm2pgsql] Flex: Add support for configuring table indexes in the Lua config (PR #1847)
Jochen Topf
notifications at github.com
Mon Dec 5 09:23:11 UTC 2022
The table definitions have a new (optional) field called "indexes" now which takes a list of index definitions. If the field is not there, we fall back to what we did before, a GIST index on the only/first geometry column of table is created. To disable indexes, set to an empty array.
See the flex-config/indexes.lua Lua config for some usage examples.
See #1780
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1847
-- Commit Summary --
* Flex: Add support for configuring table indexes in the Lua config
-- File Changes --
A flex-config/indexes.lua (155)
M src/CMakeLists.txt (1)
A src/flex-index.cpp (66)
A src/flex-index.hpp (96)
M src/flex-table.cpp (24)
M src/flex-table.hpp (13)
M src/lua-utils.cpp (4)
M src/output-flex.cpp (180)
M src/output-flex.hpp (1)
M tests/CMakeLists.txt (2)
A tests/bdd/flex/lua-index-definitions.feature (474)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1847.patch
https://github.com/openstreetmap/osm2pgsql/pull/1847.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1847
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1847 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20221205/d32beccf/attachment.htm>
More information about the Tile-serving
mailing list