Re: difference between implicit/explicit cast of integer to interval

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: difference between implicit/explicit cast of integer to interval
Дата
Msg-id 22536.1341204880@sss.pgh.pa.us
обсуждение исходный текст
Ответ на difference between implicit/explicit cast of integer to interval  (raf <raf@raf.org>)
Список pgsql-general
raf <raf@raf.org> writes:
> Q1) if an integer cannot be explicitly cast into an interval, what is happening
> when a date difference is stored in an interval variable to allow it to happen?

plpgsql is really lax about type coercions.  It typically does them by
converting the source value to text and then converting that string to
the target type.  If we were designing that language today, I doubt
we'd have accepted such a definition, but changing it now would break
a lot of code ...

            regards, tom lane

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

Предыдущее
От: raf
Дата:
Сообщение: difference between implicit/explicit cast of integer to interval
Следующее
От: Janne H
Дата:
Сообщение: Do I need archive_mode = on for hot standby?