How to quit from Postgresql Command shell psql

Unfortunately we can not come out of PostgreSQL command shell using “quit” or “exit”. But, we can quit using \q or \quit commands.

1. Connect to psql command line utility.

2. Type the psql command as shown below to connect to the psql and enter the password.

postgres@ubuntu:/etc/postgresql/9.5/main$ psql Password: psql (9.5.12) Type "help" for help. postgres=#

3. To quit, enter \q or \quit.

postgres=# \q postgres@ubuntu:/etc/postgresql/9.5/main$ psql Password: psql (9.5.12) Type "help" for help. postgres=# \quit postgres@ubuntu:/etc/postgresql/9.5/main$

Related Posts

CheapSexCams
Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Powered by k2schools
%d bloggers like this: