@AhmadQais I don’t know the process for windows, but as @Knut_Staring mentioned there are some updates you need to make to postgres to make sure it is PostGIS-enabled. I do not have resources for that but perhaps there is more info here in the CoP but certainly online.
What @Knut_Staring and I recommended was starting with a fresh database and then exporting the data and metadata to that instance via the import/export app within DHIS2. Taking that approach would circumvent the internal DB issues. This was the recommended approach depending only on if you didn’t have tons of historic data.
It may help us to better understand the context of your configuration and feasibility of the outlined approach if you share a screenshot from DHIS2’s Data Administration > Data Statistics app.