Re: proposal: disallow operator "=>" and use it for named parameters - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: proposal: disallow operator "=>" and use it for named parameters
Date
Msg-id 20150119133011.GI1663@alvh.no-ip.org
Whole thread Raw
In response to Re: proposal: disallow operator "=>" and use it for named parameters  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: disallow operator "=>" and use it for named parameters
List pgsql-hackers
Pavel Stehule wrote:

> It looks so quoting doesn't help here
> 
> + CREATE OPERATOR "=>" (
> +    leftarg = int8,<--><------>-- right unary
> +    procedure = numeric_fac
> + );
> + ERROR:  syntax error at or near "("
> + LINE 1: CREATE OPERATOR "=>" (
> +                              ^

Does it work to use OPERATOR(=>) syntax?  I don't think identifier
quoting works for operators.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: proposal: disallow operator "=>" and use it for named parameters
Next
From: Robert Haas
Date:
Subject: Re: Additional role attributes && superuser review