Find the host name and port using PSQL commands October 10, 2022 by Tarik SELECT * FROM pg_settings WHERE name="port";