[Tile-serving] [openstreetmap/osm2pgsql] Flex output is trying to create ID index on tables without IDs (#1507)
rouen-sk
notifications at github.com
Wed May 19 13:00:50 UTC 2021
Huh, I did not think of it that way, I somehow assumed way tables (with way ID) must have unique ways in them, etc. But that is not the case clearly.
I will try that.
Meanwhile, I have patched my local version to disable ID index creation and deleting (as part of re-processing) for tables without ID columns - I have added `&& table.table().has_id_column()`
to https://github.com/openstreetmap/osm2pgsql/blob/f23e6ab522646ff47a6a786d8870d54e7b9c904a/src/output-flex.cpp#L1725
and
https://github.com/openstreetmap/osm2pgsql/blob/f23e6ab522646ff47a6a786d8870d54e7b9c904a/src/output-flex.cpp#L1500
And it works :)
Your solution is probably the correct one for my use case, but my patch is probably still needed for scenarios where you really need tables without IDs.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1507#issuecomment-844082631
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210519/7e4290fb/attachment.htm>
More information about the Tile-serving
mailing list