date + interval year - why is the return type convered to a timestamp?

Поиск
Список
Период
Сортировка
От the6campbells
Тема date + interval year - why is the return type convered to a timestamp?
Дата
Msg-id 22431f1b0910221404i52040b19s7c89f6dda4ae187d@mail.gmail.com
обсуждение исходный текст
Ответы Re: date + interval year - why is the return type convered to a timestamp?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Why is Postgres returning a timestamp instead of the expected date data type for the first expression (the second returns a date)? 

In other words, is this a known bug or is it design intent. The manuals did not seem to appear to say this is intentional behaviour but is not SQL standard.

select date '2001-03-30' - interval '1' year, date '2001-03-30' - integer '365' from tversion



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

Предыдущее
От: the6campbells
Дата:
Сообщение: question about timestamp with tz
Следующее
От: Tom Lane
Дата:
Сообщение: Re: question about timestamp with tz