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

2019-04-30 Thread Adrian Klaver
On 4/30/19 12:11 PM, Andrew Gierth wrote: "Adrian" == Adrian Klaver writes: >> yeesh. that's a very long-winded way to write current_date + 7 Adrian> Yeah, I was just working of the OP's original DEFAULT: Adrian> site_mode_date timestamp NOT NULL DEFAULT date_trunc('day', Adrian> LOC

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

2019-04-30 Thread Andrew Gierth
> "Adrian" == Adrian Klaver writes: >> yeesh. that's a very long-winded way to write current_date + 7 Adrian> Yeah, I was just working of the OP's original DEFAULT: Adrian> site_mode_date timestamp NOT NULL DEFAULT date_trunc('day', Adrian> LOCALTIMESTAMP)+7, Right, but since all these

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

2019-04-30 Thread Adrian Klaver
On 4/30/19 8:00 AM, Andrew Gierth wrote: "Adrian" == Adrian Klaver 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

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

2019-04-30 Thread Ray O'Donnell
On 30/04/2019 16:00, Andrew Gierth wrote: "Adrian" == Adrian Klaver 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 Well, current_date is different: current_date returns

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

2019-04-30 Thread Andrew Gierth
> "Adrian" == Adrian Klaver 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 -- Andrew (irc:RhodiumToad)

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

2019-04-30 Thread Adrian Klaver
On 4/30/19 2:24 AM, Thomas Kellerer wrote: Daulat Ram schrieb am 30.04.2019 um 05:46: We are getting an ERROR: “operator does not exist: timestamp without time zone + integer “ while creating table in postgres. The same script is working fine in Oracle, I know there are some changes in

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

2019-04-30 Thread Thomas Kellerer
Daulat Ram schrieb am 30.04.2019 um 05:46: > We are getting an ERROR: “operator does not exist: timestamp without > time zone + integer “ while creating table in postgres. The same > script is working fine in Oracle, I know there are some changes in > postgres but I am unable to ident

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

2019-04-30 Thread Daulat Ram
Hi team, We are getting an ERROR: "operator does not exist: timestamp without time zone + integer " while creating table in postgres. The same script is working fine in Oracle, I know there are some changes in postgres but I am unable to identify . Please suggest how we can