Reduce postgres builds

Change-Id: Iebd2d1be935c1517c4ddb80d645037b97261559e