Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance

From: Qingqing Zhou <zhouqq(at)cs(dot)toronto(dot)edu>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance
Date: 2005-10-24 19:27:00
Message-ID: Pine.LNX.4.58.0510241511280.15987@eon.cs
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 24 Oct 2005, Magnus Hagander wrote:
> > Is there any way to test socket?
>
> Send the backend a signal when it's blocking for socket input (waiting
> for a user command in a psql session for example), and see that it's
> delivered. Hitting hte postmaster will test the select() path, and
> hitting a backend will test the recv() path, IIRC.
>

Ok.

- Test recv() path by runing a psql with "-f time_out.sql" and a batch
file executing "pg_ctl kill HUP/USR1" repeatedly.
- Test select() path by running two batch files, one is doing "psql -c
"set statement_timeout=10" test", the other is doing "pg_ctl kill HUP
<postmaster>".

Regards,
Qingqing

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas 2005-10-24 20:00:34 Re: PostgreSQL 8.1 Beta 4
Previous Message Dann Corbit 2005-10-24 18:54:48 Re: [GENERAL] 'a' == 'a '