Re: ago(interval) → timestamptz
| От | Andreas Karlsson |
|---|---|
| Тема | Re: ago(interval) → timestamptz |
| Дата | |
| Msg-id | aa934a26-1923-497c-bcd0-8f50eaf135e4@proxel.se обсуждение исходный текст |
| Ответ на | Re: ago(interval) → timestamptz (Laurenz Albe <laurenz.albe@cybertec.at>) |
| Ответы |
Re: ago(interval) → timestamptz
|
| Список | pgsql-hackers |
On 11/4/25 6:55 AM, Laurenz Albe wrote:
> Moreover, a good percentage of the users would instead need ago(interval) -> timestamp.
I don't get what users would need ago(interval) -> timestamp. That
function would not make any sense since there is no equivalent to now()
which returns timestamp, simply because a timestamp does not refer to
any specific point in time and can only be interpreted with some
additional piece of information like a time zone.
That said I can't get too excited about this patch since it is just a
shorter way to write e.g. now() - interval '1 day'. It would also be
quite funny to see all uses of ago('-1 day') for tomorrow.
Andreas
В списке pgsql-hackers по дате отправления: