How to Disconnect from a database and go back to the default database in PostgreSQL?
问题 I'm using PostgreSql version : postgres=# select version(); version ------------------------------------------------------------- PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit (1 row) i had connected to a database from postgres=# to newdb=# .... Now i'm in newdb=# Database i want to disconnect it and go back to postgres=# database .... How to do this ? I have tried with disconnect newdb; but its giving erroe as:: postgres=# create database newdb; CREATE DATABASE postgres=# \c