Re: pg_dump "feature"

From: Dmitry Tkach <dmitry(at)openratings(dot)com>
To: Viorel Dragomir <bc(at)vio(dot)ro>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg_dump "feature"
Date: 2003-07-16 14:33:55
Message-ID: 3F156253.3080104@openratings.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Viorel Dragomir wrote:

> In 7.1.2 you can launch this command without any problems:
> pg_dump -u -s database < file.txt
>
> where file.txt contains 2 lines:
> username
> password
> ~
> ~
> ~
>
> And you'll get the dump of the <database>.
>
> In 7.1.3 this command work, the only incovenience is that pg_dump
> shows "User name: Password:"
> but gets the password from file.
>
> In 7.3.x the pg_dump accepts the password only from stdin. The user
> must enter his password.
> It's a feature or a bug, because i can't see any logic in this behaviour.

It's a feature :-)
The logic is that it is insecure to keep passwords in files.
If you are not concerned about the security in this case, you can switch
to ident or trust identification. That won't prompt you for the password.

Dima.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2003-07-16 14:39:14 Re: numerical sort on mixed alpha/numeric data
Previous Message Tom Lane 2003-07-16 14:29:30 Re: pg_dump "feature"