[Tile-serving] [openstreetmap/osm2pgsql] add_row outside process_node/way/relation() function (Discussion #1667)
Jochen Topf
notifications at github.com
Thu Apr 21 19:53:42 UTC 2022
You could do the `add_row()` in one of the process functions and set a global Lua variable when you have done so. But you shouldn't do tricks like that. For one I am not sure whether defining a table without id columns will work and, if it doesn't, you end up with a table with some kind of OSM id column and every time osm2pgsql sees a change it will try to delete the feature from that table, which adds more overhead.
If you insist in doing this from Lua, you can use the Lua Postgresql package do access the database from there. That would be a cleaner solution at least.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1667#discussioncomment-2611253
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/repo-discussions/1667/comments/2611253 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220421/4d484653/attachment.htm>
More information about the Tile-serving
mailing list