Relating to original question posted on Stack Overflow here.
Interested in distributing a copy of PostgreSQL with a C# app (for Windows). However, trying to understand how the following scenario should be handled:
- PostgreSQL already installed on the user's system
From my understanding, should be possible to install a 2nd instance of PostgreSQL to run at the same time on the same computer system (as a different service, bound to a different TCP port #?). However, the closest answer for how this would be done was found here, which does not really provide a lot of detail.
So far, in my test environment (VM), I have one instance of Ver. 12 PostgreSQL installed in the default directory
Am I correct to understand that I should copy all of the contens of the
C:\Program Files\PostgreSQL\12 directory and copy/paste to a different directory (e.g.
pg_ctl register, but with what options?
And, then after, I should run
Are there any considerations that should be made before all of this is done?