TransWikia.com

pg_tileserv database connection string specify port

Geographic Information Systems Asked by ziggy on February 25, 2021

I am trying to connect a DB to pg_tileserv following these directions https://github.com/CrunchyData/pg_tileserv/blob/master/README.md

it says after download for windows:

SET DATABASE_URL=postgresql://username:password@host/dbname
pg_tileserv.exe

but there seems to be no option to pass in the port. I have to connect to another port that is not 5432

One Answer

You would just add it after host. Your string becomes

postgresql://username:password@host:port/dbname

Tileserv (and Featureserv) both use PostgreSQL standard connections URIs

https://www.postgresql.org/docs/10/libpq-connect.html#LIBPQ-CONNSTRING

Correct answer by TheSteve0 on February 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP