Re: How to pass around collation information

Поиск
Список
Период
Сортировка
От alvherre
Тема Re: How to pass around collation information
Дата
Msg-id 1275065149-sup-1631@alvh.no-ip.org
обсуждение исходный текст
Ответ на How to pass around collation information  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: How to pass around collation information  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Excerpts from Peter Eisentraut's message of vie may 28 12:27:52 -0400 2010:

> Option 2, invent some new mechanism that accompanies a datum or a type
> whereever it goes.  Kind of like typmod, but not really.  Then the
> collation information would presumably be made available to functions
> through the fmgr interface.  The binary representation of data values
> stays the same.

Is the collation a property of the datum, or one of the comparison?
If the latter, should it be really be made a sidecar of a datum, or
would it make more sense to attach it to the operation being performed?

I wonder if instead of trying to pass it down multiple layers till
bttextcmp and further down, it would make more sense to set a global
variable somewhere in the high levels, and only have it checked in
varstr_cmp.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: functional call named notation clashes with SQL feature
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: How to pass around collation information