Find the host name and port using PSQL commands

前端 未结 13 2254
眼角桃花
眼角桃花 2020-12-12 11:15

I have PSQL running, and am trying to get a perl application connecting to the database. Is there a command to find the current port and host that the database is running on

13条回答
  •  长情又很酷
    2020-12-12 11:40

    From the terminal you can do:

    \conninfo

    I would suggest reading a documentation on their exhaustive list of all commands using:

    \?

提交回复
热议问题