Skip to content

Draft: fix(cloud run): remove invalid hostspec param from database url

Michael requested to merge fix/run-db-url-no-hostname into main

Certain old apps still try to connect with TCP to localhost instead of using the socket. Seems like the hostspec takes precedent to the host param.

[...] to specify a non-standard Unix-domain socket directory, either omit the host specification in the URI and specify the host as a parameter, or percent-encode the path in the host component of the URI.

From the here: https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS

Edited by Michael

Merge request reports