Re: WIN32 psql Ctrl+C support

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Ludek Finstrle <luf(at)pzkagis(dot)cz>, pgsql-patches(at)postgresql(dot)org
Subject: Re: WIN32 psql Ctrl+C support
Date: 2004-04-06 13:39:10
Message-ID: 200404061339.i36DdAc26558@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Where are we on this patch?

---------------------------------------------------------------------------

Magnus Hagander wrote:
> 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
>
>
> > -----Original Message-----
> > From: Ludek Finstrle [mailto:luf(at)pzkagis(dot)cz]
> > Sent: Wednesday, January 14, 2004 1:03 PM
> > To: pgsql-patches(at)postgresql(dot)org
> > Subject: [PATCHES] WIN32 psql Ctrl+C support
> >
> >
> > Hello,
> >
> > I write Ctrl+C support for Win32 psql client. I create diff
> > againist CVS snapshoted today.
> >
> > Comments are welcome
> >
> > Luf
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2004-04-06 13:56:13 Re: hint infrastructure setup (v3)
Previous Message Bruce Momjian 2004-04-06 13:21:59 Re: [BUGS] COPY allows parameters which corrupt output