Re: ERROR: operator does not exist: timestamp without time zone +integer

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: ERROR: operator does not exist: timestamp without time zone +integer
Дата
Msg-id 1e02f867-5b18-0f0d-2aae-4f28bc3300e3@aklaver.com
обсуждение исходный текст
Ответ на Re: ERROR: operator does not exist: timestamp without time zone + integer  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Ответы Re: ERROR: operator does not exist: timestamp without time zone + integer  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
Список pgsql-general
On 4/30/19 8:00 AM, Andrew Gierth wrote:
>>>>>> "Adrian" == Adrian Klaver <adrian.klaver@aklaver.com> writes:
> 
>   Adrian> Or cast to a date:
> 
>   Adrian> test=> select date_trunc('day', localtimestamp)::date + 7;
> 
> yeesh. that's a very long-winded way to write current_date + 7
> 

Yeah, I was just working of the OP's original DEFAULT:

site_mode_date timestamp NOT NULL DEFAULT date_trunc('day', 
LOCALTIMESTAMP)+7,


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Amazon Linux Support?
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: ERROR: operator does not exist: timestamp without time zone + integer