About 53 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. 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 the /etc/

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

    Oct 18, 2016 · What command or short key can I use to exit the PostgreSQL command line utility psql?

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

  5. sql - What is the difference between "psql -c" and "psql -f" when ...

    Jan 16, 2019 · psql -f create_schema_and_table.sql My questions are: What is the difference between executing queries with "psql -c" and "psql -f"? How can the same result be achieved programatically, …

  6. How to execute multiple queries using psql command from bash shell?

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

  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 "on" to

  8. postgreSQL - psql \\i : how to execute script in a given path

    psql -f createDB.sql I want the script to call other scripts (separate ones for creating tables, adding constraints, functions etc), like this:

  9. What is the meaning of "$ {psql [@]}" in this script?

    Aug 26, 2019 · This literal quote dollarsign psql bracket at bracket quote is expanded into "psql" "array" "values" "each" "listed" "and" "quoted" "separately." It's the safer way, e.g., to accumulate arguments …

  10. PostgreSQL: Why psql can't connect to server? - Stack Overflow

    Mar 19, 2019 · I typed psql and I get this: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgr...