Re: syntax errors at "line 1" when executing every command - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: syntax errors at "line 1" when executing every command
Date
Msg-id fq77l3$5rs$1@ger.gmane.org
Whole thread Raw
In response to syntax errors at "line 1" when executing every command  ("Steven De Vriendt" <gisaalter@gmail.com>)
List pgsql-general
Steven De Vriendt wrote on 28.02.2008 21:42:
> Hi list,
>
> I'm using the latest postgreSQL with the lastest postgis.
> When executing every command I want to use, I get the following error
> message:
>
> postgis=# createdb;
> ERROR:  syntax error at or near "createdb"
> LINE 1: createdb;
>             ^
>
> I can use psql to reach my database, but after that I'm finished.
> Can't use any command. I thought this was a Vista (PATH) issue
> so I turned to Windows XP, however, I encounter the exact
> same issue. What am I doing wrong ??

createdb is an OS-level command, it is not a psql command!
The equivalent SQL command is "CREATE DATABASE"

Thomas

pgsql-general by date:

Previous
From: Decibel!
Date:
Subject: Space wasted by denormalized data
Next
From: Colin Wetherbee
Date:
Subject: Re: Space wasted by denormalized data