Re: unattened dump

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Paolo Sala <piviul(at)riminilug(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unattened dump
Date: 2006-04-13 08:47:12
Message-ID: 20060413084712.GD7362@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Apr 13, 2006 at 10:35:55AM +0200, Paolo Sala wrote:
> Hi all I am a newbe in postgres and I'm trying to obtain an unattended
> dump to pgsql. I mean, I've tryed to use pg_dump using the -U flag but I
> havn't found a way to pass a password in a unattended way. So I have to
> guess the only solution is to configure pg_hba.conf to use ident as
> authentication method?

Well, there's the .pgpass file. However, I usually find the best method is
to connect using unix domain sockets using ident (which isn't really
ident, it uses the OS to verify the user) from the database user
(postgres). Set this up in a cronjob and you're all set.

Have a ncie day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John Sidney-Woollett 2006-04-13 09:06:45 Is a high tab_reloid worrying?
Previous Message Dave Page 2006-04-13 08:45:55 Re: how can I create the DML for an existing database - within an application