lock in pg version