Re: PostGIS Integration - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: PostGIS Integration
Date
Msg-id 40209DDC.2080306@familyhealth.com.au
Whole thread Raw
In response to Re: PostGIS Integration  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PostGIS Integration  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> 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.

Just disallow that particular case for custom types :P

Will this work:  'string'::typename

Chris



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: PostGIS Integration
Next
From: Tom Lane
Date:
Subject: Re: PostGIS Integration