[#3872] Emulate MEDIAN(x) via PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER
BY x) in PostgreSQL 9.4