Re: timeout implementation issues

Поиск
Список
Период
Сортировка
Искать
От
Jan Wieck
Тема
Re: timeout implementation issues
Дата
Msg-id
200204051853.g35IruV09704@saturn.janwieck.net
Ответ на
Список
Дерево обсуждения
timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Tom Lane <tgl@sss.pgh.pa.us>
Re: timeout implementation issues Bruce Momjian <pgman@candle.pha.pa.us>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Tom Lane <tgl@sss.pgh.pa.us>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Tom Lane <tgl@sss.pgh.pa.us>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Bruce Momjian <pgman@candle.pha.pa.us>
Re: timeout implementation issues Tom Lane <tgl@sss.pgh.pa.us>
Re: timeout implementation issues Jan Wieck <janwieck@yahoo.com>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Tom Lane <tgl@sss.pgh.pa.us>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Bruce Momjian <pgman@candle.pha.pa.us>
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Re: timeout implementation issues Bruce Momjian <pgman@candle.pha.pa.us>
Re: [HACKERS] timeout implementation issues
Re: timeout implementation issues Jessica Perry Hekman <jphekman@dynamicdiagrams.com>
Tom Lane wrote:
> Jan Wieck  writes:
> >     Could  we  get  out  of  this  by  defining that "timeout" is
> >     automatically reset at next statement end?
>
> I was hoping to avoid that, because it seems like a wart.  OTOH,
> it'd be less of a wart than the global changes of semantics that
> Bruce is proposing :-(
>
> How exactly would you make this happen?  The simplest way I can think of
> to do it (reset timeout in outer loop in postgres.c) would not work,
> because it'd reset the timeout as soon as the SET statement completes.
> How would you get the setting to survive for exactly one additional
> statement?
   I  would  vote  for a general callback registering mechanism,   where you can specify an event,  a  function  and  an  opaque   pointer.  Possible events then would be end of statement, end   of transaction, commit, abort, regular end of session.
   Sure, it looks  like  total  overkill  for  this  minor  JDBC   problem.   But  I  like  general  support structures to be in   place early.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



В списке pgsql-hackers по дате отправления
От: Dann Corbit
Дата:
Сообщение: Suggestion for optimization
От: Tom Lane
Дата:
FAQ