tabs in psql - Mailing list pgsql-general

From Seb
Subject tabs in psql
Date
Msg-id 87iqzdarh9.fsf@patagonia.sebmags.homelinux.org
Whole thread Raw
Responses Re: tabs in psql  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-general
Hi,

I'm fairly new to postgresql, and I'm having some problems understanding
the syntax of SQL statements in psql.  According to the documentation,
white space can be used freely.  However, the following fails:

CREATE TABLE test
 (
    id    Int8,
    phenotype Varchar(510),
    genotype  Varchar(510)
);
testdb(> ERROR:  syntax error at or near "Varchar"
LINE 4:     phenotype Varchar(510),
                      ^

where the field name and data type spec are separated by a tab
character.  However, this works if the tab is separated by a single
space.  Can someone please explain how this is controlled, and what the
proper syntax should be?  Thanks in advance.

Cheers,

--
Seb

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Insert
Next
From: "Joshua D. Drake"
Date:
Subject: Re: tabs in psql