Re: How to update upper-bound of tstzrange ?

2024-05-21 Thread Laura Smith
Thanks all for your answers ! Much appreciated. Sent with Proton Mail secure email. On Tuesday, 21 May 2024 at 11:02, Laurenz Albe wrote: > On Mon, 2024-05-20 at 13:56 +0200, Erik Wienhold wrote: > > > On 2024-05-20 12:30 +0200, Laura Smith wrote: > > > > > Could someone kindly help me ou

Re: How to update upper-bound of tstzrange ?

2024-05-21 Thread Laurenz Albe
On Mon, 2024-05-20 at 13:56 +0200, Erik Wienhold wrote: > On 2024-05-20 12:30 +0200, Laura Smith 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

Re: How to update upper-bound of tstzrange ?

2024-05-20 Thread Erik Wienhold
On 2024-05-20 12:30 +0200, Laura Smith 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 "("

Re: How to update upper-bound of tstzrange ?

2024-05-20 Thread Kashif Zeeshan
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 < n5d9xq3ti233xiyif...@protonmail.ch> wrote: > Could someone kindly help me out with the correct syntax ? > > My fir

How to update upper-bound of tstzrange ?

2024-05-20 Thread Laura Smith
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