About 1,490,000 results
Open links in new tab
  1. How do I specify a password to 'psql' non-interactively?

    If its not too late to add most of the options in one answer: There are a couple of options: set it in the pgpass file. link set an environment variable and get it from there: export …

  2. How to show data in a table by using psql command line interface?

    Sep 25, 2014 · 216 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 …

  3. 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 …

  4. 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 …

  5. 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?

  6. 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 …

  7. 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 …

  8. database - How to show tables in PostgreSQL? - Stack Overflow

    psql -U postgres psql --username=postgres 2. Show tables Now in Psql you could run commands such as: \? list all the commands \l list databases \conninfo display information about current …

  9. 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]:

  10. PostgreSQL: How to pass parameters from command line?

    You can also pass-in the parameters at the psql command-line, or from a batch file. The first statements gather necessary details for connecting to your database.