Re: Linux replication to FreeBSD problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Linux replication to FreeBSD problem
Дата
Msg-id 15503.1408548991@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Linux replication to FreeBSD problem  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Linux replication to FreeBSD problem  (Jov <amutu@amutu.com>)
Список pgsql-general
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 08/20/2014 07:53 AM, Jov wrote:
>> I setup a PG 9.3.5 master on CentOS 6 x86_64,and 2 screaming replicaton
>> slaves,one on CentOS6 x86_64,the other on FreeBSD 10 amd64.
>> The replication work fine for a week,But today I find a problem on sql
>> running on FreeBSD:simple sql use index do not return result.If I
>> disable the index ,use seqscan,then I can get correct result.

> I would say FreeBSD is not similar enough to Linux(CentOS) to make this
> work reliably with binary replication.

The most likely theory as to the source of the problem is that the locale
names used by the CentOS machine are not recognized by the FreeBSD OS,
and/or imply slightly different sort orderings.  So a text index that's
correctly sorted according to the CentOS machine is not correctly sorted
according to FreeBSD, leading to search failures.

You could probably make this case work reliably if you used C locale on
both systems; the behavior of that is pretty portable.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Linux replication to FreeBSD problem
Следующее
От: Lori Corbani
Дата:
Сообщение: Re: create function : change name of input parameter