
Since WSL2 is a standalone virtual machine under the hood, using it might be the easiest way to achieve this. That way, you can immediately find issues with client authentication, or with connection settings.

At least according to this Stack Overflow survey 2022:Įven more, it seems like Windows’ popularity increases with time. Why do I need PostgreSQL on WSL2?Īlthough there is a strong feeling that a true programmer uses Linux in their work, this statement is not really close to the truth. I want you to be able to complete all the steps from scratch, without having to skip all over the place. Even though this knowledge can be found in different bits and pieces spread out all over the internet, I want to compile a short and straightforward how-to article.
#Postgresql install db on external drive how to#
UPDATE on : This post explains how to install PostgreSQL on WSL2 for Windows, apply the necessary changes to PostgreSQL settings, and access the database from the Windows host.
