Re: string function - "format" function proposal

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: string function - "format" function proposal
Дата
Msg-id 26221.1283780875@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: string function - "format" function proposal  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: string function - "format" function proposal  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Re: string function - "format" function proposal  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2010/9/6 Itagaki Takahiro <itagaki.takahiro@gmail.com>:
>> Which should we use for such purposes? Consistent behavior is
>> obviously preferred. Boolean type might be the only type that
>> is converted to different representation in typoutput or cast-to-test,
>> but we should consider to have boolean-specific hardwired code,
>> or cast all types to text instead of output functions.

> Personally I prefer casting to text -

No, you need to use the I/O functions.  Not every type is guaranteed to
have a cast to text.

> iit allows some later
> customizations. And it's more consistent with || operator.

I don't buy either of those arguments.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: git: uh-oh
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: git: uh-oh