Replies: 2 comments 2 replies
-
Using What is the main goal? Saving disc space for an existing database? A quick fix would be to delete any tables related to data updates (https://nominatim.org/release-docs/latest/admin/Import/#dropping-data-required-for-dynamic-updates). If you have enough disc space you can try recreating the database indexes. https://www.postgresql.org/docs/current/sql-reindex.html That needs a bit of downtime. |
Beta Was this translation helpful? Give feedback.
-
@mtmail thank you for your response. Main goal is to use less disk space before importing pbf to postgredb via Actually, I've found a solution for it, however I couldn't achieve to overwrite a style import-extratags.lua so I had to edit it in settings/flex-base.lua in python lib (in nominatim-venv) directly Path: /srv/nominatim/nominatim-venv/lib/python3.12/site-packages/nominatim_db/resources/settings/flex-base.lua
It helped me to ignore importing almost all data in extratags than "linked_place"=>"" key-values in I think 143GB is still big for only 2 countries (UK and Germany). I'm looking for less compact data set in nominatim database. Environment: |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'm not able to ignore importing extratags column in placex table?
Describe the solution you'd like
I updated my .env file to point my new import-extratags.lua script like this:
NOMINATIM_IMPORT_STYLE=/srv/nominatim/nominatim-project/styles/import-extratags.lua
Created a new file and tried some lua scripts to ignore all tags and make my extratags columm completely empty. This is one of them:
This one returns this error: FATAL: No data imported by osm2pgsql.
Describe alternatives you've considered
This one returns successful importing process but there are many records in extratags column in placex
Additional context
I tried to update all columns NULL in extratags column in postgresql 16 however my database size is getting bigger because of vacuum problem in this case which is much more trouble.
I have limited space in server and I don't need entire extratags column in my database. Please help me to ignore importing entire extratags columns in placex and place tables.
Beta Was this translation helpful? Give feedback.
All reactions