Re: [HACKERS] sigint psql

2005-02-21 Thread Magnus Hagander
>> There is no way so signal *psql*, as in the client side process. The >> signal emulation only runs in the server. >> > >But is there some equivalent of pressing ctrl-C to make psql stop what >it is doing? For example, through the pipe stream I may execute a \i >command and the user wants to st

Re: [HACKERS] sigint psql

2005-02-21 Thread Bruce Momjian
John DeSoi wrote: > Hi Magnus, > > On Feb 21, 2005, at 3:00 PM, Magnus Hagander wrote: > > > There is no way so signal *psql*, as in the client side process. The > > signal emulation only runs in the server. > > > > But is there some equivalent of pressing ctrl-C to make psql stop what > it is

Re: [HACKERS] sigint psql

2005-02-21 Thread John DeSoi
Hi Magnus, On Feb 21, 2005, at 3:00 PM, Magnus Hagander wrote: There is no way so signal *psql*, as in the client side process. The signal emulation only runs in the server. But is there some equivalent of pressing ctrl-C to make psql stop what it is doing? For example, through the pipe stream I m

Re: [HACKERS] sigint psql

2005-02-21 Thread John DeSoi
On Feb 21, 2005, at 3:00 PM, Magnus Hagander wrote: There is no way so signal *psql*, as in the client side process. The signal emulation only runs in the server. You can do the same thing in the server using pg_ctl kill, but that won't work on client processes. Thanks to everyone for the feedback

Re: [HACKERS] sigint psql

2005-02-21 Thread Magnus Hagander
>> > 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 w

Re: [HACKERS] sigint psql

2005-02-21 Thread Bruce Momjian
Doug McNaught wrote: > John DeSoi <[EMAIL PROTECTED]> 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 assume

Re: [HACKERS] sigint psql

2005-02-18 Thread Doug McNaught
John DeSoi <[EMAIL PROTECTED]> 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 (ps

[HACKERS] sigint psql

2005-02-18 Thread John DeSoi
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