Re: [HACKERS] statement_timeout logging

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] statement_timeout logging
Дата
Msg-id 200509170431.j8H4VGP19475@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] statement_timeout logging  ("Simon Riggs" <simon@2ndquadrant.com>)
Список pgsql-docs
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

В списке pgsql-docs по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: [HACKERS] statement_timeout logging
Следующее
От: Josh Berkus
Дата:
Сообщение: Docs on CE?