From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Pierre Racine <racine_pierre(at)hotmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Defining my own operator's precedence |
Date: | 2006-03-05 17:16:40 |
Message-ID: | 20060305171640.GA7815@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Sun, Mar 05, 2006 at 05:13:11PM +0000, Pierre Racine wrote:
> Hi,
>
> I have develop my own data type and my own operators on this data type. I
> could not find how to tell PostgreSQL which precedence I want to assign to
> my operator. For example, I want my unary operator "~" to have a higher
> precedence than my "+" operator. For now I have to use parenthesis to avoid
> ambiguity. I would prefer being able to define implicit precedence.
Sorry, not possible. :( You pretty much have to choose operators whose
precedence matches what you want.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-03-05 17:41:32 | Re: Copyright |
Previous Message | Pierre Racine | 2006-03-05 17:13:11 | Defining my own operator's precedence |