Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 640B01337B93 for ; Wed, 27 Apr 2011 15:51:40 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49329-01-2 for ; Wed, 27 Apr 2011 18:51:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id AB36C1337BC4 for ; Wed, 27 Apr 2011 15:51:15 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 27 Apr 2011 13:51:15 -0500 Message-Id: <4DB81F4E020000250003CF57@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 27 Apr 2011 13:51:10 -0500 From: "Kevin Grittner" To: "Fred Parkinson" , Subject: Re: Starting psql without a database? References: <4DB7EF0B020000A700017002@gwia1.abag.ca.gov> <4DB801AD020000A700017012@gwia1.abag.ca.gov> <4DB801AD020000A700017012@gwia1.abag.ca.gov> In-Reply-To: <4DB801AD020000A700017012@gwia1.abag.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/239 X-Sequence-Number: 37420 "Fred Parkinson" wrote: > 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'. I think you're confusing the OS command-line executable createdb: http://www.postgresql.org/docs/9.0/interactive/app-createdb.html and the SQL command CREATE DATABASE: http://www.postgresql.org/docs/9.0/interactive/sql-createdatabase.html -Kevin