X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6596CD1BB47 for ; Wed, 5 Nov 2003 15:36:10 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 62414-06 for ; Wed, 5 Nov 2003 11:35:43 -0400 (AST) Received: from cartero.tissat.es (unknown [62.22.156.34]) by svr1.postgresql.org (Postfix) with ESMTP id D7992D1B4E5 for ; Wed, 5 Nov 2003 11:35:33 -0400 (AST) Received: from capitular.tissat.es (capitular.tissat.es [195.77.30.34]) by cartero.tissat.es (Postfix) with ESMTP id 6BF421F3F9 for ; Wed, 5 Nov 2003 16:35:36 +0100 (CET) Received: from tissat.es ([62.22.156.122]) by capitular.tissat.es (Netscape Messaging Server 3.6) with ESMTP id AAA40AD; Wed, 5 Nov 2003 16:35:35 +0100 Message-ID: <3FA918D0.9000207@tissat.es> Date: Wed, 05 Nov 2003 16:35:44 +0100 From: "skennedy" Reply-To: skennedy@tissat.es Organization: Tissat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tom Lane Cc: "[ADMIN]" Subject: Re: Creating users in a second postgres server. References: <3FA8C738.5090604@tissat.es> <2070.1068045482@sss.pgh.pa.us> In-Reply-To: <2070.1068045482@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------090604030601010605050504" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/55 X-Sequence-Number: 11043 This is a multi-part message in MIME format. --------------090604030601010605050504 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thanks Tom, PGPORT was unset in the environment. I set it to 5433 and things started to work. If I configured the server to user 5433 before building (using --with-pg_port=5433 in configure) shouldn't the clients, etc automatically look for port 5433? The executables ARE the ones I compiled using 5433, (according to "which" anyway) :) Everything seems to work now anyway but it would be interesting/useful to know what I did wrong. Is there a trace/log of some sort which might hold the answer? Stephen Kennedy. Tom Lane wrote: >"skennedy" writes: > > >>however, when I try and create a user I get >>bash-2.03$ createuser idip_734 >>Shall the new user be allowed to create databases? (y/n) y >>Shall the new user be allowed to create more new users? (y/n) n >>psql: FATAL 1: user "p_sql734" does not exist >> >> > >Looks to me like you are talking to the old server. Perhaps you have >PGPORT set to 5432 in your environment? Or you got your PATH wrong, >so that you are invoking the older copy of createuser, which will >naturally default to port 5432? > > regards, tom lane > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > > --------------090604030601010605050504 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Tom,

PGPORT was unset in the environment.
I set it to 5433 and things started to work.

If I configured the server to user 5433 before building (using --with-pg_port=5433 in configure) shouldn't the clients, etc
automatically look for port 5433?

The executables ARE the ones I compiled using 5433, (according to "which" anyway) :)

Everything seems to work now anyway but it would be interesting/useful to know what I did wrong.  Is there a trace/log
of some sort which might hold the answer?

Stephen Kennedy.

Tom Lane wrote:
"skennedy" <skennedy@tissat.es> writes:
  
however, when I try and create a user  I get
bash-2.03$ createuser idip_734
Shall the new user be allowed to create databases? (y/n) y
Shall the new user be allowed to create more new users? (y/n) n
psql: FATAL 1:  user "p_sql734" does not exist
    

Looks to me like you are talking to the old server.  Perhaps you have
PGPORT set to 5432 in your environment?  Or you got your PATH wrong,
so that you are invoking the older copy of createuser, which will
naturally default to port 5432?

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

  
--------------090604030601010605050504--