Re: How to update upper-bound of tstzrange ?

Поиск
Список
Период
Сортировка
От Kashif Zeeshan
Тема Re: How to update upper-bound of tstzrange ?
Дата
Msg-id CAAPsdhfv3h0BQYkvwjXXsOssXmLNSGSDj=Huo7eiGAFBv30Jgw@mail.gmail.com
обсуждение исходный текст
Ответ на How to update upper-bound of tstzrange ?  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Список pgsql-general
Hi

Try this one. 

UPDATE foo
SET bar_times = bar_times + INTERVAL '1 hour'
WHERE bar_id = 'abc';

Regards
Kashif Zeeshan
Bitnine Global

On Mon, May 20, 2024 at 3:30 PM Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> wrote:
Could someone kindly help me out with the correct syntax ?

My first thought was the below but that doesn't work:

update foo set upper(bar_times)=upper(bar_times)+interval '1' hour where bar_id='abc';
ERROR:  syntax error at or near "("
LINE 1: update event_sessions set upper(bar_times)=upper(bar_ti...


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

Предыдущее
От: PetSerAl
Дата:
Сообщение: Re: pg_dump and not MVCC-safe commands
Следующее
От: David Rowley
Дата:
Сообщение: Re: signal 11: Segmentation fault ; query constraint list; pg16.3