I made a grep in package to find occurance of date_part. I found one in acs-tcl/tcl/community-core-procs-postgresql.xql
trunc(date_part('epoch',age(password_changed_date))/(60*60*24))
so maybe the right way to patch my bug is:
change in packages/robot-detection/tcl/robot-detection-procs-postgresql.xql:
===============================================
select trunc(current_timestamp - max(coalesce(modified_date, insertion_date))) from robots
===============================================
to use
===============================================
select trunc(date_part('days',current_timestamp - max(coalesce(modified_date, insertion_date))))
===============================================
Does anyone is willing to give me a feedback on this?
TIA