Skip site navigation (1) Skip section navigation (2)

Re: WIN32 psql Ctrl+C support

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Ludek Finstrle" <luf(at)pzkagis(dot)cz>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: WIN32 psql Ctrl+C support
Date: 2004-01-14 12:30:10
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
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

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


> -----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


pgsql-patches by date

Next:From: Pavel StehuleDate: 2004-01-15 13:19:50
Subject: client_encoding in dump file
Previous:From: Ludek FinstrleDate: 2004-01-14 12:02:43
Subject: WIN32 psql Ctrl+C support

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group