Re: timeout

From: Jeremy Buchmann <jeremy(at)wellsgaming(dot)com>
To: Jie Liang <jliang(at)ipinc(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql sql <pgsql-sql(at)postgresql(dot)org>
Subject: Re: timeout
Date: 2001-06-28 20:24:12
Message-ID: 200106282023.NAA22036@mail.greatbasin.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

> Is ther any to set a timeout when execute a sql stmt??

I believe this depends on the interface...for example, in JDBC, it
is this:

Statement s = new Statement();
s.setQueryTimeout(20); // Sets query timeout to 20 seconds.
...

I don't know what other interfaces offer timeouts, but that's where
you should look to find out.

--Jeremy

In response to

  • timeout at 2001-06-28 18:56:25 from Jie Liang

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2001-06-28 21:27:02 Re: restoring a dump
Previous Message Jie Liang 2001-06-28 18:56:25 timeout

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2001-06-28 21:27:02 Re: restoring a dump
Previous Message Ari Nepon 2001-06-28 19:51:07 Still stuck on a left join