robot-detection-procs-postgresql.xql