From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Dave Cramer <pg(at)fastcrypt(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: small pg_dump RFE: new --no-prompt (password) option |
Date: | 2006-12-01 19:05:07 |
Message-ID: | 20061201190507.GD23594@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Dec 01, 2006 at 10:37:07AM -0500, Tom Lane wrote:
> Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> > Seems to me that you could just do this by setting stdin to be
> > /dev/null?
>
> No, because the simple_prompt code makes a point of reading from
> /dev/tty.
Sure, but that would fail for any process which has detached from the
terminal. The backup is stdin, which you can also setup.
Admittedly, the OP may not be in a position to setup the environment in
such a way as to make it work, which means that such an option may be
worthwhile...
If it's going to be an option, I'd suggest something like --daemon-mode
since it's entirely possible other issues tmay come up later that might
need this kind of attention.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Troy | 2006-12-01 19:09:08 | Re: FOR SHARE vs FOR UPDATE locks |
Previous Message | Luiz Claudio da Silva Leão | 2006-12-01 19:02:57 | Problems to create the portuguese dictionary |