Re: small pg_dump RFE: new --no-prompt (password) option - Mailing list pgsql-hackers

From Csaba Nagy
Subject Re: small pg_dump RFE: new --no-prompt (password) option
Date
Msg-id 1164982021.13204.273.camel@coppola.muc.ecircle.de
Whole thread Raw
In response to Re: small pg_dump RFE: new --no-prompt (password) option  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-hackers
> > Seems to me that you could just do this by setting stdin to be
> > /dev/null?
> I think a well defined error message makes sense.

I would think the OP doesn't care that much about the message itself but
about the fact that the thing is left hanging and never returns. In the
presence of such a flag pg_dump should never try to prompt for a
password but fail immediately and exit.

Cheers,
Csaba.




pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: small pg_dump RFE: new --no-prompt (password) option
Next
From: Tom Lane
Date:
Subject: Re: FOR SHARE vs FOR UPDATE locks