Re: Slaves show different results for query

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Musall Maik <lists(at)musall(dot)de>, pgsql-general(at)postgresql(dot)org
Subject: Re: Slaves show different results for query
Date: 2015-05-20 13:43:18
Message-ID: 555C8F76.7060305@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 05/20/2015 06:34 AM, Musall Maik wrote:
>
>> Am 20.05.2015 um 15:17 schrieb Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>:
>>
>> On 05/19/2015 11:52 PM, Musall Maik wrote:
>>> Hi,
>>>
>>> I have a strange case where a SELECT for a primary key returns 0 rows on one slave, while it returns the correct 1 row on another slave and on the master. It does however return that row on all slaves when queried with LIKE and trailing or leading wildcard.
>>>
>>> […]
>
>>> Does anyone have a hint?
>>
>> What are the encodings on the various machines and in the databases?
>
> All encodings UTF8, all collate and ctype en_US.UTF-8. What do you mean by "machines" exactly? This is not dependent on shell environment or something,

Actually it is:

http://www.postgresql.org/docs/9.4/interactive/locale.html

"Locale support refers to an application respecting cultural preferences
regarding alphabets, sorting, number formatting, etc. PostgreSQL uses
the standard ISO C and POSIX locale facilities provided by the server
operating system. For additional information refer to the documentation
of your system."

The reason I ask is that the machine you are having problems with has OS
X. Over the years I have seen quite a few reports on this list of OS X
locale/encoding issues.

I get this also via JDBC.
>
> Maik
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message john 2015-05-20 13:56:54 Re: [GENERAL] Does PG support bulk operation in embedded C
Previous Message Musall Maik 2015-05-20 13:34:49 Re: Slaves show different results for query