Re: Users and multiple server environment - Mailing list pgsql-admin

From Tom Lane
Subject Re: Users and multiple server environment
Date
Msg-id 29103.1096782342@sss.pgh.pa.us
Whole thread Raw
In response to Re: Users and multiple server environment  (Michael Long <mlong@datalong.com>)
List pgsql-admin
Michael Long <mlong@datalong.com> writes:
> I had just discovered that I need to specify the port when creating a
> database. I had thought that I had read in the documentation that if I
> built the server from source and specified the port to use that the
> client would be bound to that by default.

The client *that you built along with the server* will bind to that port
by default.  It's not going to somehow magically propagate to other
clients built with other default port numbers.

The default port number on the client side is actually built into libpq,
not psql.  So one possible explanation if you think you've covered the
obvious bases is that you're invoking the correct version-specific psql
programs, but they are all binding to the same libpq.so.  Check
LD_LIBRARY_PATH, ldconfig configuration, etc.

            regards, tom lane

pgsql-admin by date:

Previous
From: Michael Long
Date:
Subject: Re: Users and multiple server environment
Next
From: Micahael Long
Date:
Subject: pg_dump w/ 8.0b2 and win2k