pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to check if a field exists in NEW in trigger
Date: Fri, 9 Aug 2019 20:30:20 +0200
Message-ID: <20190809183020.GB14917@hjp.at> (raw)
In-Reply-To: <1075832c-e131-474d-5d65-572004410838@lucee.org>
References: <0cc87310-590f-740e-977d-bcdde57eef1b@lucee.org>
	<37107788-df16-ca5f-3193-6176fe40f282@gmx.net>
	<CAFj8pRA7XM3SL2Dp9=_SJk6v7Us+4N42HXK7OSEUFrKv-ibV5A@mail.gmail.com>
	<ea13f32c-492c-4215-1308-aa12039104b6@gmx.net>
	<CAFj8pRDneNppu6hHTQSnvnpnC8+QLG+XxefT3fECh=fyRYZ3ow@mail.gmail.com>
	<CAHOFxGp0zRh7xkFu8o5cDtdKT=pR_AmWeLa-3STMkPFzn6v80A@mail.gmail.com>
	<1075832c-e131-474d-5d65-572004410838@lucee.org>

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/;

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (10+ messages)

Message-ID: <20190809183020.GB14917@hjp.at>
Permalink:  ../20190809183020.GB14917@hjp.at/
Also on:    postgresql.org/message-id/20190809183020.GB14917@hjp.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: How to check if a field exists in NEW in trigger
  In-Reply-To: <20190809183020.GB14917@hjp.at>
  References: <0cc87310-590f-740e-977d-bcdde57eef1b@lucee.org> <37107788-df16-ca5f-3193-6176fe40f282@gmx.net> <CAFj8pRA7XM3SL2Dp9=_SJk6v7Us+4N42HXK7OSEUFrKv-ibV5A@mail.gmail.com> <ea13f32c-492c-4215-1308-aa12039104b6@gmx.net> <CAFj8pRDneNppu6hHTQSnvnpnC8+QLG+XxefT3fECh=fyRYZ3ow@mail.gmail.com> <CAHOFxGp0zRh7xkFu8o5cDtdKT=pR_AmWeLa-3STMkPFzn6v80A@mail.gmail.com> <1075832c-e131-474d-5d65-572004410838@lucee.org> <20190809183020.GB14917@hjp.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox