A workaround for a GPDB bug