pg-cmd » Use cases » Nothing installed
Download pg-cmd Free Trial » Buy pg-cmd Now »
A production or customer server, reached over SSH or a remote session, where you need to look at PostgreSQL - and where installing anything is not an option. No package manager rights, no administrator to approve a client, no change ticket for "put a database client on the server". Sometimes the machine is not even allowed outbound traffic to fetch a package.
What the machine does have is a terminal, a filesystem and a network route to the database.
connect user:password@host:5432/database - host, port, user and schema in one line.
Because nothing has to be installed, the same copy can be left in a tools folder on any number of servers, and removing it is deleting a file. That is the difference between "someone has to approve a client package" and "I looked at it in two minutes".
The modes: connecting, interactive mode, the guide. Working in a script instead: use it in a shell script. Moving data: JSON and CSV in and out. One copy for every platform: the same commands everywhere.