Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)
Дата
Msg-id 21809.1299347011@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)  (Andres Freund <andres@anarazel.de>)
Ответы Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)  (Andres Freund <andres@anarazel.de>)
Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> I have a WIP patch fixing one of the two issues.

> Several places in selfuncs.c didn't setup collations. That lead for example to 
> errors during patternsel.

Hmm.  I have to say that this seems like quite the wrong way to go.
If everyplace in the system that could be calling a collation-sensitive
function has to be modified like this, we'll be fighting bugs of
omission till h*ll freezes over.  Why aren't we just setting
finfo.fn_collation to DEFAULT_COLLATION_OID by default, or maybe better
letting places that inspect it take zero as meaning default collation?
Call sites should only need to call fmgr_info_collation() if they have
an explicit non-default collation to pass in.
        regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Alpha4 release blockers (was Re: wrapping up this CommitFest)