Close pairs of galaxies in deep sky surveys