Re: Testing pg_terminate_backend()

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Testing pg_terminate_backend()
Date: 2008-04-18 21:35:04
Message-ID: 200804182135.m3ILZ4W15909@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Magnus Hagander wrote:
> Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > Attached is my test script. I ran it for 14 hours (asserts on),
> > > running 450 regression tests, with up to seven backends killed per
> > > regression test.
> >
> > Hmm, there are something on the order of 10000 SQL commands in our
> > regression tests, so even assuming perfect randomness you've exercised
> > SIGTERM on maybe 10% of them --- and of course there's multiple places
> > in a complex DDL command where SIGTERM might conceivably be a problem.
> >
> > Who was volunteering to run this 24x7 for awhile?
>
> That was me. As long as the script runs properly on linux, I can get
> that started as soon as I'm fed instructions on how to do it :-) Do I
> just fix the paths and set it running, or do I need to prepare
> something else?

Nothing special to prepare. Compile with asserts enabled, and run the
script. The comment at the top explains how to analyze the log for
interesting error messages.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-04-19 00:05:52 Re: Lessons from commit fest
Previous Message Bruce Momjian 2008-04-18 21:34:03 Re: Testing pg_terminate_backend()

Browse pgsql-patches by date

  From Date Subject
Next Message Gregory Stark 2008-04-18 21:51:38 Re: float4/float8/int64 passed by value with tsearchfixup
Previous Message Bruce Momjian 2008-04-18 21:34:03 Re: Testing pg_terminate_backend()