Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General PostgreSQL Topics / September 2007

Tip: Looking for answers? Try searching our database.

Closing a database

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Smith - 18 Sep 2007 12:48 GMT
Hello,
Been away from PostgreSQL for a while and probably needs retraining in
the basics.

How do I close a database? Can't even find it in the Manual

Case:
     testdb=#
     testdb=# EXIT;
     ERROR:  syntax error at or near "EXIT" at character 1
     LINE 1: EXIT;
             ^
     testdb=#
     testdb=# QUIT;
     ERROR:  syntax error at or near "QUIT" at character 1
     LINE 1: QUIT;
             ^
     testdb=#
     testdb=# END;
     WARNING:  there is no transaction in progress
     <p>COMMIT</p>
     testdb=#

quit works in MySQL

Stuck in testdb
HansH - 18 Sep 2007 14:34 GMT
> Hello,
> Been away from PostgreSQL for a while and probably needs retraining in the
> basics.
>
> How do I close a database? Can't even find it in the Manual
Presuming you want to close _client_ psql, try \q

HansH
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.