Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to always build id index #1894

Merged
merged 2 commits into from
Jan 22, 2023

Conversation

joto
Copy link
Collaborator

@joto joto commented Jan 19, 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.

joto added 2 commits January 18, 2023 19:44
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 osm2pgsql-dev#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.
@lonvia lonvia merged commit 33bfa3b into osm2pgsql-dev:master Jan 22, 2023
@joto joto deleted the create-index-always branch January 22, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants