Add postgresql < 9.3 support.