Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DIM-00059k-Ar for pgsql-general@arkaria.postgresql.org; Sat, 16 Mar 2019 17:40:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h5DIK-0001VI-2Z for pgsql-general@arkaria.postgresql.org; Sat, 16 Mar 2019 17:40:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DIJ-0001VB-QA for pgsql-general@lists.postgresql.org; Sat, 16 Mar 2019 17:40:27 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h5DIF-0000Iv-TZ for pgsql-general@lists.postgresql.org; Sat, 16 Mar 2019 17:40:26 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 652F42673; Sat, 16 Mar 2019 18:40:21 +0100 (CET) Date: Sat, 16 Mar 2019 18:40:21 +0100 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Camel case identifiers and folding Message-ID: <20190316174021.wcpjdoyize6f2gw5@hjp.at> References: <1552641160.5846.2.camel@ucll.be> <7D62A9A2-C784-47A9-96BC-5949D0C8348E@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="imiuuxttzpmljd2l" Content-Disposition: inline In-Reply-To: <7D62A9A2-C784-47A9-96BC-5949D0C8348E@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --imiuuxttzpmljd2l Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-03-15 17:09:49 -0600, Rob Sargent wrote: > On Mar 15, 2019, at 4:43 PM, Morris de Oryx = wrote: >=20 > The original question has already been answered really well, but it r= eminds > me to mention that Postgres text/varchar values are case-sensitive. H= ere's > a list of the times when I would like a case-sensitive text field: >=20 > Never >=20 > Now here's the list of times I would like a case-blind text field: >=20 > Everywhere else. >=20 [...] > What sort of content is in your field of type text? Certainly, in English > prose, =E2=80=9Crob=E2=80=9D is different than =E2=80=9CRob=E2=80=9D I disagree. While the grammar for written English has rules when to write "rob" and when to write "Rob", that distinction usually carries no semantic difference. Consider: "How to Rob the Hump of a Camel" "the go programming language was invented by rob pike, ken thompson and robert griesemer" Here "Rob" is a verb and "rob" is a first name, the opposite of what you probably intended. Yet the the first sentence is grammatically correct if it is a title and while the second isn't correct, few people will have difficulties understanding it (many probably won't even notice that it is all lower case). Spoken English of course doesn't even have a case distinction. > and if the content is for a web page (or in my experience, the content > of medical reference books) these differences are critical. A web page? Rarely, at least for the human readable parts. Medicine? I don't know. There may be names for different substances which differ only in case. But those are parts of a formal language, and as programmers we already know about case-sensitive formal languages. hp --=20 _ | 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 --imiuuxttzpmljd2l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAlyNNQAACgkQ8g5IURL+ KF28EA/+LNbskJMNXKtgB3ymDNelw2ug3zgyvnyQM3NorHooAOaV/fqf04oeTsoI Tfg26/kqqP2Dbdvn/jIITV0+n4Zc4YhkbJLFVuUYKZ2csyTae9THEnyAQaJlG8sG Nc78GDLJn4hgcnhVD3ugX59f79E+v71R95YXwwR3ClQEbfuX/dbKzQ9dLNrsnz4s zM4In+jSIvocNJ0SB69seKX1uIg9LLSV4NoFQVW8qrRq+VGk/jwitJmOZyknAtcy Y+QO/8PbqhIhwtbCu+hZkzKX4hSefwYsHRPFY5T7drlZC4IryASeKZa+bXLwjrH3 DtvIX6KAAfsgOgt17fRTpRs2iGXevCdi15GuC/8xnyUgtjP54QHpMEuGRQYKoPFB JjraH6voK9P4ATp0glVZePwVcSXnVuhCmMcGGujzcvzJ8kjV8CbSfMXjSW1RKVDQ /VitdjJ8lqS38bH2/SNMVj9GntY7tzADvIuL1wrx6HkptyZ4Y+XmLC+FM9ki4gem Lp2qQz2jKxyBBinI9dOo5SMH5gls+6qXtelxV75UWeZBwJDL/zhGCEO8VIQSxjRE X1NGsDKbe+Ka/UNg460HyPyIjIjVJY3MbyRKFZNp8IDgyzFO6n3HkY+OcnYVh6A3 gOeL4Jux7I8e/sAr3aS2l8kMp6D8x2J7Ge2rKwYVtU0NeQxfvJY= =lY2k -----END PGP SIGNATURE----- --imiuuxttzpmljd2l--