| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Bossart, Nathan" <bossartn(at)amazon(dot)com> |
| Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Improving psql's \password command |
| Date: | 2021-11-19 17:15:57 |
| Message-ID: | 3085404.1637342157@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
"Bossart, Nathan" <bossartn(at)amazon(dot)com> writes:
> Okay, here is an attempt at adding control-C support for \prompt and
> \connect. It was reasonably straightforward. I did have to teach
> simple_prompt_extended() to add a newline after a cancellation when
> "echo" is true.
LGTM, pushed after very minor fooling with the comments.
> I think that's it for psql. After a quick glance, I didn't see any
> other obvious candidates for control-C support, but I'll look a little
> closer to be sure.
Hmm, initdb's prompt-for-superuser-password might need it.
I think the rest of our frontend programs don't trap SIGINT,
or at least don't do so while requesting user input.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2021-11-19 17:20:47 | Re: update with no changes |
| Previous Message | Marcos Pegoraro | 2021-11-19 17:03:09 | Re: update with no changes |