CREATE CAST requires immutable cast function?

Поиск
Список
Период
Сортировка
It says here that CREATE CAST insists the cast function be immutable.
This seems wrong to me, in view of the fact that we have numerous
built-in casts that don't adhere to that rule --- for example,
timestamptz(date) is not immutable because it depends on the timezone
setting.

Perhaps there's a case for prohibiting volatile casts (as opposed to
stable ones), but I don't really see it.  I'd prefer to just remove
this restriction.  Comments?
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Current status: implicit-coercion issues for 7.3
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: CREATE CAST requires immutable cast function?