About 6,850,000 results
Open links in new tab
  1. How to show data in a table by using psql command line interface?

    Mar 26, 2020 · 215 Is there a way to show all the content inside a table by using psql command line interface? I can use \list to show all the databases, \d to show all the tables, but how can I …

  2. PostgreSQL: Remotely connecting to Postgres instance using psql …

    I want to remotely connect to a Postgres instance. I know we can do this using the psql command passing the hostname I tried the following: psql -U postgres -p 5432 -h hostname I modified …

  3. How to exit from PostgreSQL command line utility: psql

    Feb 27, 2012 · What command or short key can I use to exit the PostgreSQL command line utility psql?

  4. Run PostgreSQL queries from the command line - Stack Overflow

    Jul 17, 2025 · psql -U username -d mydatabase -c 'SELECT * FROM mytable' If you're new to postgresql and unfamiliar with using the command line tool psql then there is some confusing …

  5. Postgres "psql not recognized as an internal or external command"

    May 22, 2015 · 'psql' is not recognized as an internal or external command, operable program or batch file. So, I Try this and worked for me [Problem Solved]:

  6. Restore a postgres backup file using the command line?

    while using psql if your user (for e.g. postgres) has a password set then -W option should be used. For e.g. on Ubuntu without doing su postgres anywhere from terminal $ psql -h localhost …

  7. How can I change a PostgreSQL user password? - Stack Overflow

    Oct 4, 2012 · The password will be transmitted to the server in cleartext, and it might also be logged in the client's command history or the server log. psql contains a command \password …

  8. Using psql to connect to PostgreSQL in SSL mode [closed]

    I am trying to configure ssl certificate for PostgreSQL server. I have created a certificate file (server.crt) and key (server.key) in data directory and update the parameter SSL to …

  9. How to execute multiple queries using psql command from bash …

    Mar 2, 2015 · I need to execute postgresql queries from command line using psql -c command. For every psql command, it opens a new tcp connection to connect to the database server and …

  10. postgresql - How to switch databases in psql? - Stack Overflow

    Oct 16, 2010 · 2 You can list all the databases in the psql terminal using \l or \list. To select a database you can use \c dbname or \connect dbname. [INFO] You cannot use this commands …