The LORD loves the gates of Zion more than all the dwellings of Jacob.
Read Chapter 87
Augustine of Hippo
4. "The Lord loveth the gates of Sion more than all the dwellings of Jacob" (ver. 2). I have made the foregoing remarks, that ye may not imagine the gates are one thing, the foundations another. Why are the Apostles and Prophets foundations? Because their authority is the support of our weakness. Why are they gates? because through them we enter the kingdom of God: for they proclaim it to us: and while we enter by their means, we enter also through Christ, Himself being the Gate. And twelve gates of Jerusalem are spoken of, and the one gate is Christ, and the twelve gates are Christ for Christ dwells in the twelve gates, hence was twelve the number of the Apostles. There is a deep mystery in this number of twelve "Ye shall sit," says our Saviour, "on twelve thrones, judging the twelve tribes of Israel." If there are twelve thrones there, there will be no room for the judgment-seat of Paul, the thirteenth Apostle, though he says that he shall judge not men only, but even Angels; which, ...
Jacob. Jerusalem belonged to some of his children. Hence the psalmist clearly speaks of something better, even of the Church of Christ, (Berthier) which God has chosen for his spouse, having abandoned the synagogue, (Apocalypse xxi. 9.; Calmet) which was only intended to be a pedagogue. (Haydock)