PostgreSql バージョンを使用しています:
postgres=# select version();
version
-------------------------------------------------------------
PostgreSQL 9.2.4, compiled by Visual C++ build 1600, 64-bit
(1 row)
postgres=#
から...までデータベースに接続していましたが、newdb=#
今はnewdb=#
データベースにいるので、切断してデータベースに戻りたいpostgres=#
です ....
これを行う方法 ?
私は試してみましたdisconnect newdb;
しかし、次のようにエラーを与えます::
postgres=# create database newdb;
CREATE DATABASE
postgres=# \c newdb;
WARNING: Console code page (437) differs from Windows code page (1252)
8-bit characters might not work correctly. See psql reference
page "Notes for Windows users" for details.
You are now connected to database "newdb" as user "postgres".
newdb=# disconnect newdb;
ERROR: syntax error at or near "disconnect"
LINE 1: disconnect newdb;
^
newdb=#
これを行う他の方法はありますか、それとも私は何か間違っていますか!!