Running Postgres on windows AND WSL, connect pgadmin to both
1
vote
1
answer
171
views
I have a webapp I'm developing using Symfony 6.4 and Postgres 15.
My Employer has given me a windows machine that is locked down and I can not get raised privileges. Anytime i want anything done i have to go through service desk.
I have noticed that my PHP/Symfony app runs poorly compared to another (contract) developer who uses a linux distribution - so i figured I would set up WSL2 with ubuntu and try a full app set up there to see if there is a performance issue.
I would really like my WSL Postgres AND my Windows Postgres to be accessible in pgAdmin4. I need them both for now while I complete this investigation. Without the admin privileges I cannot stop the windows PostgreSQL service.
Has anybody achieved this, or knows how to achieve this?
* I have the postgres installed on WSL2 Ubuntu
* I have opened the conf file and set
listen_addresses = 'localhost'
* I have also tried 127.0.0.1
* I have tried setting the port on ubuntu to 5431 (instead of 2)
Results:


Asked by mrpeebs
(21 rep)
Apr 7, 2025, 10:02 AM
Last activity: May 16, 2025, 12:01 PM
Last activity: May 16, 2025, 12:01 PM