Re: pg_dump problem

From: Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk>
To: "pgsql-general (at) postgresql (dot) org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_dump problem
Date: 2003-07-23 08:51:37
Message-ID: 20030723095137.A12844@bacon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On 22/07/2003 16:30 Bob Nix wrote:
> I am trying to get pg_dump to work. I suspect that I am doing something
> wrong - Here's my command, and the resulting message.
>
> "postgres" owns the database and the tables; all tables were created
> under "postgres".
> "postgres" has no password.
>
> The database is named "demo".
>
> === my command ====
> $ pg_dump -U postgres demo > demo.dump
>
> === resulting message ===
> pg_dump: [archiver (db)] connection to database "demo" failed: FATAL:
> IDENT authentication failed for user "postgres"

su to postgres from root should work but can be a PITA. I always create a
super user for a standard unix user (i.e. me on my development box) and
use that to create/own the databases. So the only time I actually need to
su postgres is during installation/setup.

HTH

--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marc Cuypers 2003-07-23 09:20:33 'last updated' or 'last added'
Previous Message Jean-Christian Imbeault 2003-07-23 08:50:53 \df PATTERN, what pattern?