Two servers on one machine

Started by Janning Vygenover 23 years ago2 messagesgeneral
Jump to latest
#1Janning Vygen
vygen@gmx.de

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Janning Vygen (#1)
Re: Two servers on one machine

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