Re: [HACKERS] psql and Control-C - Mailing list pgsql-hackers

From Chris Bitmead
Subject Re: [HACKERS] psql and Control-C
Date
Msg-id 38AC9F0D.4931DB92@nimrod.itg.telecom.com.au
Whole thread Raw
In response to psql and Control-C  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: [HACKERS] psql and Control-C  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Alfred Perlstein wrote:

> Whoa whoa... It's a bit more complicated than you think, there's a lot
> of state that gets put into libpq,

I don't think this has anything to do with libpq. This has got to do
with
psql's reading of commands _before_ they get shoved into libpq. As such
it shouldn't be that dangerous.

> i guess the simplest way would be
> to do so and also cancel the transaction, but a simple longjump won't
> work reliably and you'd also have to take very careful steps to make
> sure you handle everything _just right_ from a signal context.
> 
> I'd rather have the inconvience of psql exiting than a not entirely
> thought out mechanism for doing this properly potentially having psql
> run amok on my database. :)
> 
> --
> -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> 
> ************


pgsql-hackers by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [HACKERS] psql and Control-C
Next
From: Alfred Perlstein
Date:
Subject: Re: [HACKERS] psql and Control-C