James Mansion wrote: > I'm wondering if the mechanism used for sending signals between > postmaster processes on Win32 is much more heavyweight that is > necessary. > > Is there a reason not to call OpenThread on the target postmaster's > thread id, and then use QueueUserAPC to execute a 'signal handler' > method on it? (Or Terminate Thread for 'extreme' cases).
Yes. We used to use APCs, but touching anything remotely related to Winsock from an APC is not supported... We had a lot of trouble with it initially, and it took a long support case with Microsoft PSS to figure out what was broken, because this being unsupported was not properly documented. > Haven't tried it - but I can't help thinking that the named pipe > service is a bit heavyweight. It certainly is ;-) We could probably find something more efficient, but APCs are not the one. //Magnus -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers