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

    Sep 15, 2021 · For those about to use this, be aware that including a password as part of a shell command will 1) display it in the process list visible by all users of the system (e.g. ps -ef), and …

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

    May 22, 2015 · Psql continued to work after I deleted the lib path, but stopped working after I deleted the bin path. When I returned bin, it still didn't work, and the same with lib. I closed and …

  3. psql - PostgreSQL disable more output - Stack Overflow

    Jun 25, 2012 · I am running a script on my PostgreSQL server: 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 …

  4. Find the host name and port using PSQL commands

    Apr 8, 2011 · I have PSQL running, and am trying to get a perl application connecting to the database. Is there a command to find the current port and host that the database is running on?

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

    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 behaviour you …

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

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

  7. Which version of PostgreSQL am I running? - Stack Overflow

    As Frank notes, this can be deceiving. psql will connect to whatever postmaster/postgres database process is running and the database engine may not be the same version as the …

  8. Using psql to connect to PostgreSQL in SSL mode

    4 psql "sslmode=require host=localhost port=2345 dbname=postgres" --username=some_user According to the postgres psql documentation, only the connection parameters should go in …

  9. How do I install just the client tools for PostgreSQL on Windows?

    Nov 22, 2015 · But the only Windows binaries I have been able to find are the full installer, which includes the database server and client. Is it possible to get a client-only Windows binary …

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

    Jan 16, 2019 · I don't know what you are doing wrong, your "psql -c" command works perfectly fine: ads@diamond:~$ psql -c "begin; create schema test_schema; create table …