"Jeff Stout" <[EMAIL PROTECTED]> wrote: > > I am fairly new to postgres, I need to know how to switch > databases once I'm in a psql session. I can't seem to find the > command for \h , maybe I just blind |-;
"\?" is your friend... $ psql Password: Welcome to psql 7.4.2, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit jseymour=> \? General \c[onnect] [DBNAME|- [USER]] connect to new database (currently "jseymour") [snip] jseymour=> \l List of databases Name | Owner | Encoding -----------+----------+----------- bookbiz | jseymour | SQL_ASCII bookbiz2 | jseymour | SQL_ASCII jseymour | jseymour | SQL_ASCII mydb | jseymour | SQL_ASCII [snip] (12 rows) jseymour=> \c mydb You are now connected to database "mydb". mydb=> HTH, Jim ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend