Re: RfD: more powerful "any" types

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: RfD: more powerful "any" types
Дата
Msg-id B3450C6B-9ABE-434F-B4D1-92B11721350F@kineticode.com
обсуждение исходный текст
Ответ на Re: RfD: more powerful "any" types  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sep 10, 2009, at 12:10 PM, Tom Lane wrote:

>> SELECT sprintf('some %d', 10::mycustomtype)
>
> For the formats that presume an integer or float input in C, perhaps
> we could coerce to numeric (failing if that fails) and then print
> appropriately.  Or maybe int or float8 would be more appropriate
> conversion targets.

Don't forget type categories, which could dictate useful defaults.

Best,

David


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: RfD: more powerful "any" types
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: RfD: more powerful "any" types