Starting psql without a database? - Mailing list pgsql-admin

From Fred Parkinson
Subject Starting psql without a database?
Date
Msg-id 4DB801AD020000A700017012@gwia1.abag.ca.gov
Whole thread Raw
Responses Re: Starting psql without a database?
List pgsql-admin
Folks
 
As I have been unable to install pgadmin3 on my OpenSUSE Linux 10 box (erroneously described as 11.2 in the request for help post, that was useless), I have decided to use psql since it seems to be my only option.
 
However, I have no database as yet, and when I type in a console 'psql' I get the message "psql: FATAL: database 'username' does not exist"
So I try to start by sending the createdb command, as in: "psql -c createdb -T DEFAULT 'timecard'" but this returns the error "psql: FATAL:  database "timecard" does not exist"
 
I tried using the database 'postgres' which seems to be created during the install:
psql postgres, which takes me to a psql prompt.  However, the command createdb -T DEFAULT "timecard" now results in the error "syntax error at or neat "createdb" with a carat pointing to the 'c' in 'createdb'.
 
As usual, stuck again!
 
Any ideas greatly appreciated.
Fred

pgsql-admin by date:

Previous
From: Raghavendra
Date:
Subject: Re: best practice for moving millions of rows to child table when setting up partitioning?
Next
From: "Kevin Grittner"
Date:
Subject: Re: Starting psql without a database?