Make log-likelihood work on GPDB 4.2.3

Also IGD is way too slow on GPDB, added an option to disable parallel
computation.