Skip to content

Add port parameter to --wp - #47

Open
mvexel wants to merge 3 commits into
openstreetmap:mainfrom
mvexel:master
Open

Add port parameter to --wp#47
mvexel wants to merge 3 commits into
openstreetmap:mainfrom
mvexel:master

Conversation

@mvexel

@mvexel mvexel commented Jan 5, 2019

Copy link
Copy Markdown

This PR adds a port parameter to set the port the PostgreSQL database is running at so you can do

osmosis --rb planet/utah-latest.osm.pbf --wp database=osm port=5433 user=osm

This is convenient if you have multiple PostgreSQL instances running side by side or you are running the PostgreSQL server on some non-standard port for other reasons.

I did try host=localhost:5433 but that didn't work and also didn't seem like a very clean solution given that psql for example uses a separate parameter for it as well.

@brettch

brettch commented May 19, 2020

Copy link
Copy Markdown
Member

Seems like a useful change, however the Checkstyle violations will need to be fixed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants