From: | "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Jan Wieck" <janwieck(at)yahoo(dot)com>, "Jessica Perry Hekman" <jphekman(at)dynamicdiagrams(dot)com>, "Barry Lind" <barry(at)xythos(dot)com>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: timeout implementation issues |
Date: | 2002-04-08 11:45:25 |
Message-ID: | EKEJJICOHDIEMGPNIFIJMEKKHGAA.Inoue@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> -----Original Message-----
> From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us]
>
> Hiroshi Inoue wrote:
> > Bruce Momjian wrote:
> > >
> > > > > > Sorry I couldn't understand your point.
> > > > > > It seems the simplest and the most certain way is to call
> > > > > > 'SET QUERY_TIMEOUT per query. The way dosen't require
> > > > > > RESET at all. Is the overhead an issue ?
> > > > >
> > > > > What about psql and libpq. Doing a timeout before every
> query is a
> > > > > pain.
> > > >
> > > > Psql and libpq would simply issue the query according to the
> > > > user's request as they currently do. What's pain with it ?
> > >
> > > If they wanted to place a timeout on all queries in a session, they
> > > would need a SET for every query, which seems like a pain.
> >
> > Oh I see. You mean users' pain ?
>
> Sorry I was unclear.
>
> > If a user wants to place a timeout on all the query, he
> > would issue SET query_timeout command only once.
>
> I am confused. Above you state you want SET QUERY_TIMEOUT to be
> per-query. I assume you mean that the timeout applies for only the next
> query and is turned off after that.
Hmm there seems a misunderstanding between you and I but I
don't see what it is. Does *SET QUERY_TIMEOUT* start a timer in
your scenario ? In my scenario *SET QUERY_TIMEOUT* only
registers the timeout value for subsequent queries.
regards,
Hiroshi inoue
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-04-08 13:02:03 | Re: timeout implementation issues |
Previous Message | Jaume Teixi | 2002-04-08 10:35:42 | best method for select within all dimensions of an array |