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

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

    Mar 26, 2020 · 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 show all …

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

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

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

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

  8. 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 in pgAdmin.

  9. postgresql - How to save psql output to a file? - Stack Overflow

    Mar 16, 2011 · I'm using psql's \\dt to list all tables in a database and I need to save the results. What is the command to export the results of a psql command to a file?

  10. postgresql - How to use the psql command to list, create, use and ...

    Nov 22, 2016 · 25 I'm a postgreSQL newbie and I can't find any usable introduction to using the psql command. At least I think that's the command I want to use. Is it possible in postgreSQL to simply …