Issue 4678 upgrade pg indicies