Re: date_trunc function in interval version

Поиск
Список
Период
Сортировка
От Przemysław Sztoch
Тема Re: date_trunc function in interval version
Дата
Msg-id 922c8f8e-859b-6278-f399-46a7e19ab4b2@sztoch.pl
обсуждение исходный текст
Ответ на Re: date_trunc function in interval version  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: date_trunc function in interval version  (John Naylor <johncnaylorls@gmail.com>)
Re: date_trunc function in interval version  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
In my opinion date_trunc is very good name.
Truncated data is timestamp type, not interval.
First parameter has same meaning in original date_trunc and in my new version.
New version provides only more granularity.

Pavel Stehule wrote on 12/22/2023 8:43 PM:
Hi

pá 22. 12. 2023 v 20:26 odesílatel Przemysław Sztoch <przemyslaw@sztoch.pl> napsal:
Hello.
There is date_trunc(interval, timestamptz, timezone) function.
First parameter can be '5 year', '2 month', '6 hour', '3 hour', '15 minute', '10 second' etc.

should not be named interval_trunc instead? In this case the good name can be hard to choose, but with the name date_trunc it can be hard to find it.

Regards

Pavel
 
--
Przemysław Sztoch | Mobile +48 509 99 00 66

--
Przemysław Sztoch | Mobile +48 509 99 00 66

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: authentication/t/001_password.pl trashes ~/.psql_history
Следующее
От: Chen Hao Hsu
Дата:
Сообщение: Fixing pgbench init overflow