[Tile-serving] [osm2pgsql-dev/osm2pgsql] can osm2pgsql support PGSERVICEFILE ? (Discussion #2437)
Andreas Hadjiprocopis
notifications at github.com
Sat Dec 6 10:54:56 UTC 2025
Hmm, sorry because I must be doing something wrong then with this (with or without `-d gis`):
```
PGSERVICEFILE=credentials-gis.pg osm2pgsql --create --slim -G --hstore --multi-geometry --tag-transform-script openstreetmap-carto.lua -C 2500 --number-processes 2 -S openstreetmap-carto.style monaco-latest.osm.pbf
```
it says:
```
ERROR: Connecting to database failed (context=check): connection to server on socket "/var/run/postgresql/.s.PGSQL..." failed: fe_sendauth: no password supplied
```
Whereas this works for `psql`:
```
PGSERVICEFILE=credentials-gis.pg psql 'service=gis'
```
Perhaps there is a way to insert that `service=gis` somewhere?
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/discussions/2437#discussioncomment-15179357
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/repo-discussions/2437/comments/15179357 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20251206/f9c22179/attachment.htm>
More information about the Tile-serving
mailing list