I was trying to init temporal schema as part of init step of our postgres docker image. The issue I found was that at the time of init the postgres docker-entrypoint.sh does not use tcp connection but only unix connections. Is there a way to specify that while using temporal-sql-tool. Although the connectProtocol option exists it is not exposed via the tool.
Postgres isse: https://github.com/docker-library/postgres/pull/440