Re: Improving psql's \password command
От
Bossart, Nathan
Тема
Re: Improving psql's \password command
Дата
Msg-id
450C0AD1-CF21-4056-A9EE-6201E9763FC9@amazon.com
Ответ на
Re: Improving psql's \password command (Tom Lane)
Список
Дерево обсуждения
Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command Tom Lane <tgl@sss.pgh.pa.us>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
Re: Improving psql's \password command "Bossart, Nathan" <bossartn@amazon.com>
On 11/17/21, 4:38 PM, "Bossart, Nathan" wrote: > On 11/17/21, 4:15 PM, "Tom Lane" wrote: >> As you mentioned, there are several other simple_prompt() calls >> that could usefully be improved. (I think the one in startup.c >> may be OK because we've not set up the SIGINT handler yet, >> though.) I wondered whether it's worth refactoring some more >> to have just one function that sets up the context mechanism. > > I'll get started on these. 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. 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. Nathan
В списке pgsql-hackers по дате отправления