Thread: Two servers on one machine

Two servers on one machine

From
Janning Vygen
Date:
Hi,

i would like to run two or more servers on my test machine. Sometime
with different versions or different options. I just would like to
have different test environments for different projects.

I can set a different port at compile time and have to connect via
psql -p newport, right?

But isnt there a way to let postgresql listen to a differnet ip
address?

something like:
psql -h www.testprojekt.de
psql -h www.otherprojekt.de
both connecting to a different postmaster

just like the listen directive within apache httpd.conf
of course these domains have to be mapped to different IP adresses.

Is it possible? I guess not, but maybe i missed something in the docs.

regards,
janning

--
Planwerk 6 /websolutions
Herzogstraße 86
40215 Düsseldorf

fon 0211-6015919
fax 0211-6015917
http://www.planwerk6.de

Re: Two servers on one machine

From
Tom Lane
Date:
Janning Vygen <vygen@gmx.de> writes:
> But isnt there a way to let postgresql listen to a differnet ip
> address?

See the virtual_host configuration parameter.  I've never used it,
but I believe that's what it's for.

            regards, tom lane