From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Steve Haresnape <s.haresnape@creativeintegrity.co.nz>
To: pgsql-general@postgresql.org
Subject: Re: Fwd: Camel case identifiers and folding
Date: Sat, 16 Mar 2019 07:25:16 -0700
Message-ID: <fd4f84f0-8df3-e2cf-4b30-c89ff8c687d9@aklaver.com> (raw)
In-Reply-To: <CAJrKPxd+yxM=oBtECaHpm7zrjCutQ23THV7aHOJ8LbyONJiJqQ@mail.gmail.com>
References: <CAJrKPxc69dMNJAE=3Y5mG56sXwQLRqXZnN4inZQ3EXdwZFqH2Q@mail.gmail.com>
<CAKFQuwaBpYUPng4O=Q3ge3KUytsrt+VYb4u8J-C8dd9dum9Ehw@mail.gmail.com>
<CAJrKPxfek1GNcvsxdU=HFY1AzN1ZOPweMzurjtNtmx_83C6pEQ@mail.gmail.com>
<CAJrKPxd+yxM=oBtECaHpm7zrjCutQ23THV7aHOJ8LbyONJiJqQ@mail.gmail.com>
On 3/16/19 1:53 AM, Steve Haresnape wrote:
> My apologies I sent this reply to David only by mistake.
>
> ---------- Forwarded message ---------
> From: *Steve Haresnape* <s.haresnape@creativeintegrity.co.nz
> <mailto:s.haresnape@creativeintegrity.co.nz>>
> Date: Fri, 15 Mar 2019 at 13:09
> Subject: Re: Camel case identifiers and folding
> To: David G. Johnston <david.g.johnston@gmail.com
> <mailto:david.g.johnston@gmail.com>>
>
>
> As I said, I don't want to quote my identifiers. I know what that does.
> I want to specify them in a certain way, see them in that same way, but
> refer to them in any old way.
>
> You can call it normalize or fold or whatever. It's a bad design choice,
> and not even a completely compliant choice.
It is SQL standard(sort of) so I would not call it a bad choice. It
deviates from the standard in that it folds down not up, but for your
case that would not matter.
>
> Is a cure contemplated? I know it's not just me that dislikes this.
I would say no. Probably matched by folks who would dislike having it
changed.
>
> On Fri, 15 Mar 2019 at 12:21, David G. Johnston
> <david.g.johnston@gmail.com <mailto:david.g.johnston@gmail.com>> wrote:
>
> On Thu, Mar 14, 2019 at 4:07 PM Steve Haresnape
> <s.haresnape@creativeintegrity.co.nz
> <mailto:s.haresnape@creativeintegrity.co.nz>> wrote:
> >
> > I'm porting a sql server database to postgresql 9.6. My camelCase
> identifiers are having their humps removed. This is disconcerting
> and sad.
> >
> > Is there a cure for this?
>
> No
>
> >I don't want to quote my identifiers unless I have to.
>
> PostgreSQL made the choice long ago to normalize unquoted identifiers
> to lower case. Quoting them will preserve whatever you type,
> including case.
>
> David J.
>
>
>
> --
> Steve Haresnape
> 60 Kauri Road, Awhitu, RD 4 Waiuku 2684
> s.haresnape@creativeintegrity.co.nz
> <mailto:s.haresnape@creativeintegrity.co.nz>
> Phone: (09) 235 1698
> Mobile: 021 514 666
>
>
> --
> Steve Haresnape
> 60 Kauri Road, Awhitu, RD 4 Waiuku 2684
> s.haresnape@creativeintegrity.co.nz
> <mailto:s.haresnape@creativeintegrity.co.nz>
> Phone: (09) 235 1698
> Mobile: 021 514 666
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, s.haresnape@creativeintegrity.co.nz
Subject: Re: Fwd: Camel case identifiers and folding
In-Reply-To: <fd4f84f0-8df3-e2cf-4b30-c89ff8c687d9@aklaver.com>
References: <CAJrKPxc69dMNJAE=3Y5mG56sXwQLRqXZnN4inZQ3EXdwZFqH2Q@mail.gmail.com> <CAKFQuwaBpYUPng4O=Q3ge3KUytsrt+VYb4u8J-C8dd9dum9Ehw@mail.gmail.com> <CAJrKPxfek1GNcvsxdU=HFY1AzN1ZOPweMzurjtNtmx_83C6pEQ@mail.gmail.com> <CAJrKPxd+yxM=oBtECaHpm7zrjCutQ23THV7aHOJ8LbyONJiJqQ@mail.gmail.com> <fd4f84f0-8df3-e2cf-4b30-c89ff8c687d9@aklaver.com>
* 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