[Tile-serving] [osm2pgsql-dev/osm2pgsql] Allow table inserts without context object (PR #2491)
Jochen Topf
notifications at github.com
Sun Jun 28 07:40:41 UTC 2026
So far an `insert()` into a table was only allowed in the node, way and relation processing functions, i.e. those function with a "context object". That makes sense in so far as the id column(s) can only been filled magically if there is a context object. But osm2pgsql has allowed tables without id column(s) for a long time. These tables can now be filled from any processing function, for instance in the `after_*` callbacks.
It is still not possible to call `insert()` from the main Lua code outside any of the callbacks. That's because the database connections have not been set up yet.
You can view, comment on, or merge this pull request online at:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2491
-- Commit Summary --
* Allow table inserts without context object
-- File Changes --
M src/output-flex.cpp (57)
M src/output-flex.hpp (2)
-- Patch Links --
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2491.patch
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2491.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/pull/2491
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/pull/2491 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20260628/b6851258/attachment.htm>
More information about the Tile-serving
mailing list