Needing to work with #PostgreSQL for a few days continuous, and it's better to have it set up as a #Windows Service rather than just a portable installation.
Here's how: https://notepad.onghu.com/2026/portable-postgresql-on-windows-service-pg18/
(Also, it covers how to send logs to file)

Using Portable PostgreSQL as a Service on Windows and Sending Logs to File
In previous posts, we have looked at how to use portable PostgreSQL on Windows without installing it. However, one of the advantages of the installation is that it sets up additional things like Windows service. In this post, we show how to register and run the portable installation as a Windows service.





