From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Matt Daw <matt(at)shotgunsoftware(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Differences in Unicode handling on Mac vs Linux? |
Date: | 2013-06-02 20:22:48 |
Message-ID: | 24691.1370204568@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Matt Daw <matt(at)shotgunsoftware(dot)com> writes:
> Howdy, I loaded a client's DB on my Mac to debug an unrelated bug, but
> I'm blocked because my Mac is rejecting SQL that works on our Linux
> production servers. Here's a simple case:
> # select * from shots where sg_poznmka is NULL;
> ERROR: column "sg_poznmka" does not exist
> LINE 1: select * from shots where sg_poznmka is NULL;
Hm ... what does "\d shots" say about the spelling of the column name?
> Anything else I could double-check? Or are there any known Mac-related
> Unicode issues?
OS X's Unicode locales are pretty crummy. I'm suspicious that there's
some sort of case-folding inconsistency here, but it's hard to say more
(especially since you didn't actually tell us *which* locales you've
selected on each machine). If it is that, as a short-term fix it might
help to double-quote the column name.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Matt Daw | 2013-06-02 20:48:24 | Re: Differences in Unicode handling on Mac vs Linux? |
Previous Message | Matt Daw | 2013-06-02 20:03:48 | Differences in Unicode handling on Mac vs Linux? |