Re: sigint psql

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: John DeSoi <desoi(at)pgedit(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: sigint psql
Date: 2005-02-18 16:32:02
Message-ID: 871xbdrfr1.fsf@asmodeus.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

John DeSoi <desoi(at)pgedit(dot)com> writes:

> I'm communicating with psql via a pipe stream. This works pretty well,
> but one problem I have is trying to cancel an operation. If I send a
> sigint, psql dies. In looking at the source I gather this is because
> it assumes I'm in non-interactive mode (pset.notty is true). I was
> wondering if there was some way to work around this short of
> recompiling the source. I need to do the same thing on Windows.
>
> Thanks for any suggestions,

On Unix you could run 'psql' through a pty rather than a pipe. No
idea what the Windows equivalent would be.

-Doug

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-02-18 16:33:24 Re: SPI_finish and RegisterExprContextCallback
Previous Message Magnus Hagander 2005-02-18 16:28:09 Re: win32 performance - fsync question