Re: Precision loss casting float to numeric

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Precision loss casting float to numeric
Дата
Msg-id 6147.1519674945@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Precision loss casting float to numeric  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: Precision loss casting float to numeric
Список pgsql-hackers
Chapman Flack <chap@anastigmatix.net> writes:
> I wonder if an alternative to making a cast that can't be immutable,
> because it looks at a GUC, could be to offer a choice of cast
> functions: if you need the other behavior, create a schema, do a
> CREATE CAST in it, and put it on your search path ahead of pg_catalog.

Nope, because casts aren't schema-local, since they don't have names.
There can be only one cast between given source and target types.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: invalid memory alloc request size error with commit 4b93f579
Следующее
От: Bear Giles
Дата:
Сообщение: Re: Precision loss casting float to numeric