From: | Steve Singer <steve(at)ssinger(dot)info> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Kevin Grittner <kgrittn(at)ymail(dot)com>, Andres Freund <andres(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Hannu Krosing <hannu(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: record identical operator |
Date: | 2013-09-18 16:54:00 |
Message-ID: | BLU0-SMTP59248B3547C08E0DB35B47DC200@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 09/18/2013 11:39 AM, Stephen Frost wrote:
> * Kevin Grittner (kgrittn(at)ymail(dot)com) wrote:
>> = and <> aren't listed above even though they do a byte-for-byte
>> comparison because, well, I guess because we have chosen to treat
>> two UTF8 strings which produce the same set of glyphs using
>> different bytes as unequal. :-/
> I tend to side with Andres on this case actually- we're being asked to
> store specific UTF8 bytes by the end user. That is not the same as
> treating two different numerics which are the same *number* as
> different because they have different binary representations, which is
> entirely an internal-to-postgres consideration.
The problem is that there are datatypes (citext, postgis,...) that have
defined = to return true when comparing two values that are different
not just stored differently. Are you saying that matview's should
update only when the = operator of the datatype returns false and if
people don't like this behaviour they should fix the datatypes?
> Thanks,
>
> Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2013-09-18 17:01:35 | Re: Patch for typo in src/bin/psql/command.c |
Previous Message | Andres Freund | 2013-09-18 16:53:41 | Re: Where to load modules from? |