[Tile-serving] [openstreetmap/osm2pgsql] Schema support (#619)

Paul Norman notifications at github.com
Fri Aug 26 20:04:12 UTC 2016


I'm still getting test failures. on `tests/test-output-pgsql-area` I get

```
Expected PGRES_TUPLES_OK but got PGRES_FATAL_ERROR. ERROR:  relation "osm2pgsql_test_polygon" does not exist
LINE 1: SELECT COUNT(*) FROM osm2pgsql_test_polygon
                             ^
 Query was SELECT COUNT(*) FROM osm2pgsql_test_polygon.
FAIL
```

It looks like it created the table as `_polygon`.

To get the tests working locally you *might* need to copy some files from the source dir to the build dir with `cp ../tests/*.{osm,json,style} tests/ && cp ../default.style ./`

Shouldn't there also be some changes to the tests, probably `test-output-pgsql-schema`?

I'll leave it to @lonvia to decide what to do about schemas and Nominatim.

Something that just occurred to me is that the approach of setting schema via a prefix isn't clearest withte multi backend. With that backend the slim tables still have a prefix but the rendering tables don't.

-- 
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/pull/619#issuecomment-242837267
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160826/8c3a3c05/attachment.html>


More information about the Tile-serving mailing list