Type \q
and then press ENTER
to quit psql
.
UPDATE: 19-OCT-2018
As of PostgreSQL 11, the keywords “quit
” and “exit
” in the PostgreSQL command-line interface have been included to help make it easier to leave the command-line tool.
More Related Contents:
- PostgreSQL “DESCRIBE TABLE”
- In psql, why do some commands have no effect?
- Generating time series between two dates in PostgreSQL
- How do I specify a password to ‘psql’ non-interactively?
- Run batch file with psql command without password
- I forgot the password I entered during postgres installation
- Run a PostgreSQL .sql file using command line arguments
- How to switch databases in psql?
- Postgresql: Scripting psql execution with password
- “psql: could not connect to server: Connection refused” Error when connecting to remote database
- Generate series of dates – using date type as input
- Test for null in function with varying parameters
- Postgres query optimization (forcing an index scan)
- psql: FATAL: database “” does not exist
- Dynamically generate columns for crosstab in PostgreSQL
- PostgreSQL: Why psql can’t connect to server?
- Use variable set by psql meta-command inside of DO block
- I forgot the password I entered during PostgreSQL installation
- PostgreSQL ERROR: canceling statement due to conflict with recovery
- Change type of varchar field to integer: “cannot be cast automatically to type integer”
- Postgresql insert trigger to set value
- How to add column if not exists on PostgreSQL?
- Alternate output format for psql showing one column per line with column name
- Library not loaded: /usr/local/opt/readline/lib/libreadline.6.2.dylib
- PostgreSQL disable more output
- now() default values are all showing same timestamp
- Importing .csv with timestamp column (dd.mm.yyyy hh.mm.ss) using psql \copy
- Convert escaped Unicode character back to actual character in PostgreSQL
- Where does PostgreSQL store configuration/conf files?
- PostgreSQL – disabling constraints