From: | Ludek Finstrle <luf(at)pzkagis(dot)cz> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Magnus Hagander <mha(at)sollentuna(dot)net>, pgsql-patches(at)postgresql(dot)org |
Subject: | Re: WIN32 psql Ctrl+C support |
Date: | 2004-04-07 08:31:59 |
Message-ID: | 20040407083159.GC11076@soptik.pzkagis.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
> Where are we on this patch?
I don't have enough time to fully understand the problem which Magnus notice.
The patch I sent I use on 5 computers with no problem. It's sufficient
solution for me now.
Luf
> > You need to make all variable access (including libpq, I think) in the
> > handler threadsafe. The control handler will execute on a different
> > thread from the main one (see
> > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc
> > /base/handlerroutine.asp).
> >
> > One way to do this could be to have the handler just set an event or a
> > variable, and then poll this one in the main thread. For more
> > information about these issues, see recent threads on signal handling on
> > pgsql-hackers-win32 (which deals with the server, but much the same
> > issues).
> >
> >
> > //Magnus
> >
> > > I write Ctrl+C support for Win32 psql client. I create diff
> > > againist CVS snapshoted today.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-04-08 16:47:25 | Re: Function to kill backend |
Previous Message | Fabien COELHO | 2004-04-07 07:26:48 | Re: [PATCHES] LIKE vs regex queries |