pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Long <mlong@datalong.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Users and multiple server environment
Date: Sun, 03 Oct 2004 01:45:42 -0400
Message-ID: <29103.1096782342@sss.pgh.pa.us> (raw)
In-Reply-To: <415F8EC5.9040504@datalong.com>
References: <415F87D7.5000800@datalong.com>
	<28880.1096780739@sss.pgh.pa.us>
	<415F8EC5.9040504@datalong.com>

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



view thread (13+ messages)  latest in thread

Message-ID: <29103.1096782342@sss.pgh.pa.us>
Permalink:  ../29103.1096782342@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29103.1096782342@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mlong@datalong.com
  Subject: Re: Users and multiple server environment
  In-Reply-To: <29103.1096782342@sss.pgh.pa.us>
  References: <415F87D7.5000800@datalong.com> <28880.1096780739@sss.pgh.pa.us> <415F8EC5.9040504@datalong.com> <29103.1096782342@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox