On Wed, 4 Nov 2026 at 12:12, Alvaro Herrera <[email protected]> wrote:

On 2026-Nov-04, Peter Eisentraut wrote:

> The more I think about this, the old behavior might just be a bug.  But in
> any case, let's deal with it intentionally.

Yeah, as a user I can't see ever having the intention for psql to quit
when I Ctrl-C a running command.  It's not something I think we should
propagate.

Agreed, that psql shouldn't do that in *interactive use*. I expect
that's what you're talking about. This patchset does not change that at
all.

Peter was talking about the behaviour of Ctrl+C in *script mode* (e.g.
by using -f to execute a sql file). There Ctrl+C should imo always kill
the psql process that's running the script. That wasn't happening when
it was waiting for user input. I agree with Peter that that's a bug


Reply via email to