[Tile-serving] [openstreetmap/osm2pgsql] Add option to always build id index (PR #1894)
Jochen Topf
notifications at github.com
Thu Jan 19 15:22:35 UTC 2023
If the user always needs the id index, they can force the index build even in non-slim (or slim+drop) mode by setting the `create_index` option of the `ids` setting in the define_table() Lua command to `always`. The default is `autpo` which means: Only build the index in slim mode.
See #1854
The test runner (`steps_db.py`) has been extended so that the table_exists() check also checks for views, so that we can access the data in the `pg_catalog.pg_indexes` view.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1894
-- Commit Summary --
* Use several lua_pop()s to clean up stack instead of one
* Add option to always build id index
-- File Changes --
M src/flex-table.cpp (3)
M src/flex-table.hpp (13)
M src/output-flex.cpp (20)
M tests/bdd/flex/lua-index-definitions.feature (61)
M tests/bdd/steps/steps_db.py (6)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1894.patch
https://github.com/openstreetmap/osm2pgsql/pull/1894.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1894
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230119/44534484/attachment.htm>
More information about the Tile-serving
mailing list