You can always ask how difficult it will be to install two versions at the same time, and it depends on your operating system. For example, on RedHat Linux systems, this is very difficult to do. PostgreSQL RPMs are only for installing one version at any one time. Sometimes the only reasonable way is to create your own PostgreSQL from the original version for the second version that you want to install, which is an interesting adventure if you have never done it before.
In Debian Linux, two versions at once are pretty simple. I believe this is straightforward on Windows, but it depends on which installer you use.
Once you get two different versions of the database, only then you will have to worry about what everyone else is talking about: creating each database on its own port and its own installation directory. This is often trivial compared to the work required to install two versions at the same time.
Greg smith
source share