Re: Users and multiple server environment

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Long <mlong(at)datalong(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Users and multiple server environment
Date: 2004-10-03 05:45:42
Message-ID: 29103.1096782342@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Michael Long <mlong(at)datalong(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Micahael Long 2004-10-03 06:13:09 pg_dump w/ 8.0b2 and win2k
Previous Message Michael Long 2004-10-03 05:31:49 Re: Users and multiple server environment