getting
Wroclawchildren of foreigners born in Poland (the Pesel number is assigned automatically, it is issued at the local registry office (Urząd Stanu Cywilnego) when issuing a birth certificate)
foreigners who have received a meldunek also automatically receive a Pesel number in the local municipality
from 2021, foreigners can get a Pesel number for tax purposes (you don't need a meldunek for this)