Re: problems with permissions

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: problems with permissions
Date: 2014-04-28 21:28:28
Message-ID: 535EC7FC.4080601@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/25/2014 7:11 PM, Eric Smith wrote:
> Having a problem dumping a database using pg_dump. This is Mac OS 10.9.2 and postgres 8.3. I'm using md5 for authentication, and have the appropriate .pgpass file with u=rw permissions in the user's home directory. I can access my database, called radiovision, using psql -U radiovision. I think that means the authentication is working properly (i.e. postgres does not ask for a password for radiovision or give me any authentication errors). However, when I try to create a backup using pg_dump -C radiovision, I am prompted for a password to which I respond with radiovision's password. I then get the error:
>
> connection to database "radiovision" failed: FATAL: password authentication failed for user "DrRudner".

try pg_dump -U radiovision -C radiovision ...

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2014-04-28 21:40:07 Re: problems with permissions
Previous Message David Ekren 2014-04-28 19:15:48 xml question