I like the pgAdmin III GUI software, but the GUI uses more bandwidth than SSH console.
psql is not interactive, without menus, tables list, etc.
Does exist some interactive text-mode tool to connect to PostgreSQL ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no text-mode window-and-menu curses/ncurses style text mode interface for PostgreSQL; no ncurses equivalent to PgAdmin-III.
I strongly recommend learning
psqland getting comfortable with it. You could use PgAdmin-III remotely as detailed below, but in the long run you’ll be massively more productive if you learnpsql.Use PgAdmin-III via ssh tunnels or direct connection
You can always connect with PgAdmin-III via an ssh tunnel or remote TCP/IP connection. That way you aren’t transmitting all the GUI data over the network, just the PostgreSQL protocol data.
For ssh, do something like:
then while the ssh session is open, connect to
localhostport15432to make a connection to the remote DB.This will work even if the remote DB is only listening on
127.0.0.1. It’ll also work if you ssh into a bastion host then connect to the DB server from there; just changelocalhostin the-Largument to the IP/hostname of the Pg server. For more information see thesshmanual, particularlyLocalForwardfor IP forwarding,ProxyCommandfor custom multilayer tunnels, and the-Doption for dynamic SOCKS proxying.It’s even possible to use an ssh tunnel to connect to a server that’s only listening for unix socket connections, by running
socatto proxy between the unix socket and TCP.None of this will work when you’re connecting to a Windows host, but
rdp2tcpcan be used to tunnel TCP over RDP connections for similar effect. See this question.Use psql
psqlis pretty interactive. Though it isn’t a GUI windowing interface, it’s hardly just a scripting tool. It provides lots of visibility into the system with the\dcommands, lots of info via\h, tab completion, paging,\ebreak-out command editing, and lots of other interactive features.Use
\?for psql help, and\h SQL_COMMANDfor syntax of a particular SQL command, eg\h INSERT.