Re: Boolean operators without commutators vs. ALL/ANY - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Boolean operators without commutators vs. ALL/ANY
Date
Msg-id 1308317770-sup-6340@alvh.no-ip.org
Whole thread Raw
In response to Re: Boolean operators without commutators vs. ALL/ANY  (Florian Pflug <fgp@phlo.org>)
Responses Re: Boolean operators without commutators vs. ALL/ANY
List pgsql-hackers
Excerpts from Florian Pflug's message of vie jun 17 04:46:32 -0400 2011:
> On Jun17, 2011, at 03:42 , Alvaro Herrera wrote:
> > To make matters worse, our delimiters for regexes are the same as for
> > strings, the single quote.  So you get
> > 
> > foo =~ 'bar'    /* foo is the text column, bar is the regex */
> > 'bar' =~ foo    /* no complaint but it's wrong */
> > 
> > 'bar' ~= foo    /* okay */
> > 'foo' ~= bar    /* no complaint but it's wrong */
> > 
> > How do I tell which is the regex here?  If we used, say, /, that would
> > be a different matter:
> 
> How is this different from the situation today where the operator
> is just "~"?

Err, we don't have commutators today?

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade using appname to lock out other users
Next
From: Andrew Dunstan
Date:
Subject: Re: XPATH evaluation