Re: Unexpected casts while using date_trunc()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Unexpected casts while using date_trunc()
Дата
Msg-id 915.1527190293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Unexpected casts while using date_trunc()  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: Unexpected casts while using date_trunc()  (Chris Bandy <bandy.chris@gmail.com>)
Список pgsql-hackers
Andrew Gierth <andrew@tao11.riddles.org.uk> writes:
> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>  Tom> Yeah.  There are two relevant variants of date_trunc():
>  [...]
>  Tom> So we probably ought to change the docs here.

> There's also the option of adding an explicit function
> date_trunc(text,date) returns date, which is a workaround that I (and
> probably quite a few other people) have used. I think having such a
> function added to core would be less surprising than the current
> behavior.

Ah!  Yes, of course, that would be better.  Seems like a workable
solution for Chris, too.  We still can't back-patch it, though.

            regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: contrib/sepgsql fails on Fedora 28
Следующее
От: Pierre-Emmanuel André
Дата:
Сообщение: PostgreSQL 11 beta1 : regressions failed on OpenBSD with JIT