tu peux utiliser çà "substring(string from pattern)" pour comparer les 2 premier chiffre de tes codes postaux.

je te donne l'url ou j'ai trouvé la fonction Postgresql