[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Re: [HACKERS] operator precedence issues
From: Andres Freund <andres () 2ndquadrant ! com>
Date: 2013-08-30 22:48:52
Message-ID: 20130830224852.GA11360 () awork2 ! anarazel ! de
[Download RAW message or body]
Hi,
On 2013-08-30 17:35:04 -0500, Merlin Moncure wrote:
> "When a schema-qualified operator name is used in the OPERATOR syntax,
> as for example in:
> SELECT 3 OPERATOR(pg_catalog.+) 4;
> the OPERATOR construct is taken to have the default precedence shown
> in Table 4-2 for "any other" operator. This is true no matter which
> specific operator appears inside OPERATOR()."
>
> That rule seems intentionally designed to make it impossible to to
> override mathematical behaviors. Mainly curious -- was that
> intentional?
You can change your search_path to include your schema before an
explicitly listed pg_catalog afair. Not nice, but should work...
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic