// postgres has to_timestamp(double) starting with 8.1
returnfmt.Sprintf("%s BETWEEN to_timestamp(%d) AND to_timestamp(%d)",args[0],m.TimeRange.GetFromAsSecondsEpoch(),m.TimeRange.GetToAsSecondsEpoch()),nil
}
// dont use to_timestamp in this macro for redshift compatibility #9566
returnfmt.Sprintf("%s BETWEEN 'epoch'::timestamptz + %d * '1s'::interval AND 'epoch'::timestamptz + %d * '1s'::interval",args[0],m.TimeRange.GetFromAsSecondsEpoch(),m.TimeRange.GetToAsSecondsEpoch()),nil