[Tile-serving] [osm2pgsql] Updates fail when multiple schemas are used (#308)

Sarah Hoffmann notifications at github.com
Tue Mar 3 20:08:03 UTC 2015


Related to the recent addition of custom schemas in #279.

Running `osm2pgsql -as -S default 500.osc` on a database with one installation in the public schema and one in a custom one, the update fails with:
~~~
Setting up table: planet_osm_point
Osm2pgsql failed due to ERROR: Problem reading geometry information for table planet_osm_point - does it exist?
~~~

Problem is that the lookup for geometry information [here](https://github.com/openstreetmap/osm2pgsql/blob/master/table.cpp#L109) expects exactly one result back while now I have two tables planet_osm_point. The schema needs to be added to the query there. There might be other meta queries that experience the same problem.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/308
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150303/f85db9ef/attachment.html>


More information about the Tile-serving mailing list