[Tile-serving] [openstreetmap/osm2pgsql] Parameters output-pgsql-schema and middle-schema not working (Issue #1644)
julrodriguez
notifications at github.com
Tue Feb 22 13:36:03 UTC 2022
## What version of osm2pgsql are you using?
osm2pgsql version 1.6.0
## What operating system and PostgreSQL/PostGIS version are you using?
PostgreSQL 13.4
postgis 3.1.4
Amazon RDS
## What did you do exactly?
We have tried to use the schema when executing osm2pgsql command line,
but this is not working; the tables are still created under public schema.
* Notice we using the same super user "dbuser" do create the database "osm" and schema "osm".
* dbuser is a super user and has all permissions
* CREATE SCHEMA osm;
* Since our version is 1.6.0 we using the parameters to specify
* the schema to be used.
osm2pgsql --extra-attributes \
--output=flex --style=/opt/geo/scripts/final.lua \
--keep-coastlines --cache 30000 \
--output-pgsql-schema=osm --middle-schema=osm\
--slim --drop --flat-nodes /data/file \
-H localhost \
-P 5432 -U dbuser -d osm /data/planet-latest.osm.pbf
We also tried setting the search_path as following.
ALTER ROLE dbuser SET search_path TO osm, public;
None of the above makes the command create the tables and data under the osm schema.
## What did you expect to happen?
We expected to have the tables and data under the "osm" schema
## What did happen instead?
Tables and data were found under public schema.
## What did you do to try analyzing the problem?
We tried what is described above.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/1644
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/issues/1644 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220222/45dab275/attachment.htm>
More information about the Tile-serving
mailing list