About 4,370,000 results
Open links in new tab
  1. 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 …

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

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

    Oct 30, 2013 · 795 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 …

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

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

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

  8. "use database_name" command in PostgreSQL - Stack Overflow

    I am beginner to PostgreSQL. I want to connect to another database from the query editor of Postgres - like the USE command of MySQL or MS SQL Server. I found \\c databasename by …

  9. psql - PostgreSQL disable more output - Stack Overflow

    Jun 25, 2012 · psql db -f sql.sql from bash or in a cron script. It keeps trying to paginate the output with more or less. How do I disable result pagination in psql? All I want to do is change the …

  10. Create database from command line in PostgreSQL

    Mar 19, 2019 · I am trying to create a database from command line. My OS is centos and postgres version is 10.9. sudo -u postgres psql createdb test Password for user test: Why is it …