Re: Windows pgpass Problems..

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Eric Emerton <Eric(dot)Emerton(at)etrials(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Windows pgpass Problems..
Date: 2005-09-06 18:48:11
Message-ID: 20050906184811.GI26068@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, Sep 06, 2005 at 11:24:45AM -0400, Eric Emerton wrote:
> I have been stuggling all day with the pgpass ability on 8.0 Postgres
> - on Windows 2000. I have been to the
> documentation:<http://www.postgresql.org/docs/8.0/interactive/libpq-pgpass.html>
> After reading many threads on similar problems, I just cannot seem to
> get a batch file to recognize that pgpass is there. I have dropped
> it into the Application data directory postgresql\pgpass.conf of
> 'Administrator', (My windows username), 'postgres', 'All Users', etc,
> etc. The contents I have tried for the pgpass file areeach of the
> combinations of:
>
> localhost:5432:<mydbname>:<dbusername>:<the password>
> 127.0.0.1:5432:<mydbname>:<dbusername>:<the password>
> localhost:*:<mydbname>:<dbusername>:<the password>
> 127.0.0.1:*:<mydbname>:<dbusername>:<the password>
> ..and many others
>
> <dbusername> has been postgres and other test superuser accounts.
> Nothing seems to work. I have restarted postgres, restarted windows,
> and it simply wont take..

Which program fails, and how does it fail?

You have the correct permissions on the file, I presume? The file
should not be readable nor writable by anyone but the owner; and I
assume the directory where it resides, shouldn't either (In fact I'd
check every directory up in the path.)

--
Alvaro Herrera -- Valdivia, Chile Architect, www.EnterpriseDB.com
"Entristecido, Wutra (canción de Las Barreras)
echa a Freyr a rodar
y a nosotros al mar"

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message huaxin zhang 2005-09-06 18:57:46 how to change index cluster ratio?
Previous Message Goulet, Dick 2005-09-06 18:18:52 Re: Windows pgpass Problems..