Re: How to check if a field exists in NEW in trigger - Mailing list pgsql-general

From Peter J. Holzer
Subject Re: How to check if a field exists in NEW in trigger
Date
Msg-id 20190809183020.GB14917@hjp.at
Whole thread Raw
In response to Re: How to check if a field exists in NEW in trigger  ("Igal @ Lucee.org" <igal@lucee.org>)
List pgsql-general
On 2019-08-07 15:54:33 -0700, Igal @ Lucee.org wrote:
> There is no reason, however, for an email address to be not-lower-cased, so
> while in some cases (no pun intended) it makes sense to keep the original
> CaSe while performing a case insensitive comparison, when it comes to email
> addresses I rather collapse the value upon insertion/update.

You should be aware that according to the specs, the local part of an
email address is case-sensitive. So JoeSmith@example.com and
JoESmith@example.com might be two distinct email addresses.

Admittedly I've never seen that in practice (although I've seen a lot of
other problems caused by people who made unwarranted assumptions about
email addresses).

        hp

--
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

Attachment

pgsql-general by date:

Previous
From: Harold Falkmeyer
Date:
Subject: Re: PostgreSQL 8.4 Tablespace Inconsistency
Next
From: Souvik Bhattacherjee
Date:
Subject: Bulk Inserts