Re: Theory of operation of collation patch

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Theory of operation of collation patch
Дата
Msg-id 9236.1299597322@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Theory of operation of collation patch  (Susanne Ebrecht <susanne@2ndQuadrant.com>)
Список pgsql-hackers
Susanne Ebrecht <susanne@2ndQuadrant.com> writes:
> On 07.03.2011 17:43, Tom Lane wrote:
>> because two expressions that are equal() must necessarily have the same collation
>> property.

> Peter, Tom,

> I am not able to see this.

> If 'abc' == 'abc' is not collation depending at all. It is only
> encoding depending.

Sorry, I was using a term of art there.  This isn't about data values,
it's about parsed expression trees.  See the equal() function in
src/backend/nodes/equalfuncs.c.  If two expression trees match according
to equal(), then they must necessarily have the same collation property,
because equal() compares all the fields and in particular the collation
fields.
        regards, tom lane


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: How should the waiting backends behave in sync rep?
Следующее
От: Adrian von Bidder
Дата:
Сообщение: Re: Beginner question: Hacking environment?