[Tile-serving] [osm2pgsql-dev/osm2pgsql] Execute pre- and/or post-import SQL (Discussion #2283)

Jochen Topf notifications at github.com
Sun Dec 22 14:44:23 UTC 2024


You can always just use `psql` to do that.

The other option is using `osm2pgsql-gen` which has functionality to simply run SQL commands. This allows also to run SQL commands for each tile (of zoom zoom level that you specify) which can really be useful when running a query on the whole planet is not feasible or when doing updates and only some areas with changes needs recomputing. `osm2pgsql-gen` was created for generalization of map data, but it can really be used for all sorts of post-processing. At some point we want to integrate this functionality into osm2pgsql itself, so you don't need to run two programs, but the details are not clear yet.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2283#discussioncomment-11643057
You are receiving this because you are subscribed to this thread.

Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2283/comments/11643057 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20241222/80966c42/attachment.htm>


More information about the Tile-serving mailing list