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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to