Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E3E119FB933 for ; Thu, 19 Jul 2007 01:36:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 95584-09 for ; Thu, 19 Jul 2007 01:36:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from bay0-omc1-s14.bay0.hotmail.com (bay0-omc1-s14.bay0.hotmail.com [65.54.246.86]) by postgresql.org (Postfix) with ESMTP id 3149D9FBDD8 for ; Thu, 19 Jul 2007 01:36:05 -0300 (ADT) Received: from hotmail.com ([207.46.11.114]) by bay0-omc1-s14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 18 Jul 2007 21:36:04 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 18 Jul 2007 21:36:03 -0700 Message-ID: Received: from 207.46.11.123 by by123fd.bay123.hotmail.msn.com with HTTP; Thu, 19 Jul 2007 04:36:00 GMT X-Originating-IP: [59.160.193.34] X-Originating-Email: [aroravishal22@hotmail.com] X-Sender: aroravishal22@hotmail.com In-Reply-To: From: "Vishal Arora" To: tsakai@gallo.ucsf.edu, pgsql-admin@postgresql.org Subject: Re: getting service from a local server (v8.2.4) Date: Thu, 19 Jul 2007 04:36:00 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 19 Jul 2007 04:36:03.0791 (UTC) FILETIME=[50AE2DF0:01C7C9BE] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.032 tagged_above=0 required=5 tests=AWL=0.217, BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200707/210 X-Sequence-Number: 26191 >From: "Tena Sakai" >To: >Subject: [ADMIN] getting service from a local server (v8.2.4) >Date: Wed, 18 Jul 2007 21:13:11 -0700 > >Hi, > >I am new to postgres and having a strange problem. Please help. > >I installed postgres v 8.2.4 on a new linux server (not upgrade, >but a virgin install) and created a couple of users. For the >sake of clarity and concreteness, I will call this server S824. >There is another server on the network where S824 resides that >also runs postgres (v 8.1.1). I'll call this server S811. >Postgres on S811 has been running for a ;png time (a year+). > >The users I created on S824 are user J and user T. Both users >J and T also have accounts on S811. Here are a few scenarios >that defies my brains (all issued from S824): > >a) as user J, I issue "psql testdb" > it behaves the way I want it. It asks me J's password, I > authenticate and I get to psql prompt. >b) as user J, I issue "psql -h S824 testdb" > It behaves exactly like case a). This is also fine. >c) as user T, I issue "psql testdb" > it does NOT behave the way I want it. I want it to behave > like a) and/or b) above. Instead, after authentication, it > offers service from S811 (which also has a database called > testdb). Is by any chance user T owner of testdb on S811? >d) as user T, I issue "psql -h S824 testdb" > it offers the service from S824, which I consider to be > the correct behavior. > >So, the problem boils down to c). Can somebody please tell >me what causes c) to go to remote server? And how I can >correct it to behave like user J? > >Thank you. > >Tena Sakai >tsakai@gallo.ucsf.edu > _________________________________________________________________ http://liveearth.msn.com