postgres 9.3 compatibility workaround