Yes... with 7.1 you can specify the location of the Unix socket file. If
you want to connect to the 7.1 server you will have to specify the which
Unix socket file to use. This is done with the host option ( the -h option
) as the path to the file. For example if you specified the Unix file to be
located in the /usr/local/pg71 directory, you would do:
psql -h /usr/local/pg71
I think in this way, you can run as many copies of 7.1 as you would like as
long as they are all located in different directories. The location of the
Unix socket file is specified in the new Grand Unified Configuration (GUC)
file, so you don't have to recompile to set it.
Hope that helps.
Matt O'Connor
> -----Original Message-----
> From: newsreader@mediaone.net [SMTP:newsreader@mediaone.net]
> Sent: Wednesday, April 11, 2001 10:17 AM
> To: pgsql-general@postgresql.org
> Subject: Re: [GENERAL] run both 7.0.3 and 7.1
>
> I don't want to accept outside
> connections i.e. I don't want to use
> -i switch. Is that still possible?
>
> On Wed, Apr 11, 2001 at 05:22:47PM +0200, Peter Eisentraut wrote:
> > newsreader@mediaone.net writes:
> >
> > > Is it possible to run both 7.0.3 and 7.1
> > > on the same server? I don't mind
> > > having two separate directories and I think
> > > I can run two for outside connection
> > > but using different ports. What I would
> > > like to do is to have both servers listen
> > > to the local connection only.
> >
> > As long as you use different data directories and different ports you
> > should be fine. Possibly you need to configure your system for more
> > shared memory and/or semaphores.
> >
> > --
> > Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster