X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C891CD84DD; Sat, 17 Sep 2005 01:31:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87776-01; Sat, 17 Sep 2005 04:31:15 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [64.139.89.126]) by svr1.postgresql.org (Postfix) with ESMTP id 85F63D8453; Sat, 17 Sep 2005 01:31:15 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id j8H4VGP19475; Sat, 17 Sep 2005 00:31:16 -0400 (EDT) From: Bruce Momjian Message-Id: <200509170431.j8H4VGP19475@candle.pha.pa.us> Subject: Re: [HACKERS] statement_timeout logging In-Reply-To: To: Simon Riggs Date: Sat, 17 Sep 2005 00:31:16 -0400 (EDT) Cc: Alvaro Herrera , PostgreSQL-documentation , pgsql-hackers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL121 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200509/28 X-Sequence-Number: 3214 Simon Riggs wrote: > >Alvaro Herrera > > On Fri, Sep 16, 2005 at 03:41:11PM -0400, Bruce Momjian wrote: > > > > I have updated the message to: > > > > > > > > errmsg("canceling query due to user request or > > statement timeout"))); > > > > > > Oops. Did we freeze the message strings already for this release? > > > > Not yet. > > > > I'm not sure I agree with the wording though -- is there no > > way to tell > > the difference? > > Yes, my patch. :-) > > The message is generated following receipt of a SIGINT which is sent by > kill() after the statement_timeout. > > My patch was able to generate a different message by logging just before > the kill() is called. (Obviously, there isn't much "after" in this > circumstance). Your patch just prints a statement "before" printing the cancel message. What we should do is to print the proper cause of the cancel, and I am working on a patch for that. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073