Re: PostGIS Integration - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PostGIS Integration
Date
Msg-id 7250.1075878426@sss.pgh.pa.us
Whole thread Raw
In response to Re: PostGIS Integration  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: PostGIS Integration
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> I can't see any way to handle parameterized types without extending the
>> grammar individually for each one --- otherwise it's too hard to tell
>> them apart from function calls.

> Disallow it in table definitions, but allow it in domain definitions...

Those two cases are not hard, because in those scenarios the parser
knows it is expecting a type specification.  The real problem is this
syntax for typed literals:    typename 'string'
which occurs in ordinary expressions.  So when you see "name(" you
aren't real sure if you're seeing the start of a function call or the
start of a typed-literal construct.  And it's very hard to postpone that
decision until you see what comes after the right paren.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: Re: PostGIS Integration
Next
From: Christopher Kings-Lynne
Date:
Subject: Re: PostGIS Integration