two version of postgres

hi

i have postgres 11 who is already installed, I use it for some project.

I installed postgres 13.

I would like to start postgres 13 (not in the same time then 11 release)

**postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.

in /var/lib/pgsql/

there is not a folder by postgres release

[FONT=monospace]locate pg_hba.conf

[/FONT][FONT=monospace]/usr/share/postgresql11/pg_hba.conf.sample
/usr/share/postgresql13/pg_hba.conf.sample
/var/lib/pgsql/data/pg_hba.conf [/FONT]
[FONT=monospace]

locate postgresql.conf

/usr/lib/tmpfiles.d/postgresql.conf
/usr/share/postgresql11/postgresql.conf.sample
/usr/share/postgresql13/postgresql.conf.sample
/var/lib/pgsql/data/postgresql.conf

[/FONT]**

Is it possible to install two postgres versions side-by-side?
Try to ask at postgres forums.

I’m not aware that two different versions can run side by side, or at least it’d be difficult and complex to set something like that up… One of the installed versions would have to have its own set of libraries, be deployed using non-default names or in a non-default file tree and a separate set of configurations would have to point to the different instance.

Recommend instead installing a virtualization technology like Virtualbox, create a Guest machine and run your different PostgreSQL in it, then everything in the VM can be set up, configured, managed and run with defaults.

TSU