Re: Hi!, help with this new type - Mailing list pgsql-novice

From Tom Lane
Subject Re: Hi!, help with this new type
Date
Msg-id 28393.1086070447@sss.pgh.pa.us
Whole thread Raw
In response to Hi!, help with this new type  (David Cruz <davidcrmail@yahoo.com>)
List pgsql-novice
David Cruz <davidcrmail@yahoo.com> writes:
> pruebas1=> create type newtype as (number integer, str
> char(20));
> ERROR:  parser: parse error at or near "as"

> And I get that error, could somebody help me?...I'm
> using  PostgreSQL 7.4

I'd bet not.  That example works fine in 7.4 for me.  The
syntax error is exactly what I get in 7.2 though...

            regards, tom lane

pgsql-novice by date:

Previous
From: David Cruz
Date:
Subject: Hi!, help with this new type
Next
From: derrick@grifflink.com
Date:
Subject: Fw: Dynamic Array into pl/pgSQL function