public inbox for [email protected]
help / color / mirror / Atom feedFrom: Greg Sabino Mullane <[email protected]>
To: Tom Lane <[email protected]>
Cc: Steve Midgley <[email protected]>
Cc: Bo Guo <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: Overcoming Initcap Function limitations?
Date: Tue, 5 Dec 2023 15:54:08 -0500
Message-ID: <CAKAnmmKbVmBpbHqBiYYYSp=bTPU4+1J0BnpjrjTMJrE=xvOg_A@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CADHFRch1=ND1TpiOidJELBdJJSugn-H1d3vyjg9gh9Nw1dZCgg@mail.gmail.com>
<CAKAnmmKhepxPzLWiU2JMNWsNiwLmQAyKCgV-f2dMot1hKVa-hA@mail.gmail.com>
<CAJexoSK3grH+4khLYMDH=dBwbZxx=F-5GUM1rzHh5fzT_GGuwg@mail.gmail.com>
<CADHFRcj_4uaxjNSJCCmB8LBE3w5BHh8a7u3pMpZiyDQSbawTyA@mail.gmail.com>
<CAJexoSLZKvxVBoueN0_YjTkSu4-G1A1wFbPCqw_9S4b+cs9NXA@mail.gmail.com>
<[email protected]>
I agree with Tom. Store the original: let the frontend uppercase themselves
if they want it that way. If they decide to force the transforms back down
to you, you won't have spoiled your input. If they are querying on that
column, a functional index on lower(col) would be nice. To answer your
original question, yes, let the front end deal with the problem, leaving
you time to worry about more traditional database-related problems. :)
Cheers,
Greg
view thread (7+ messages)
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Overcoming Initcap Function limitations?
In-Reply-To: <CAKAnmmKbVmBpbHqBiYYYSp=bTPU4+1J0BnpjrjTMJrE=xvOg_A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox