Re: How to change PQexec timeout?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Sergey Belikov <belikov(at)bnl(dot)gov>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: How to change PQexec timeout?
Date: 2003-11-10 02:02:46
Message-ID: 200311100202.hAA22kP12834@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Sergey Belikov wrote:
> Dear postgreSQL experts,
> could you explain me how can I dynamically change time-out value for
> each PQexec() call? Or at least how can I set time-out for my current
> program?
> I found
> void setQueryTimeout (int seconds)
> in libodbc++ documentation, but nothing of this kind in libpq. Should I
> install libodbc++ to manipulate time-out value, or there is something in
> postgreSQL itself?

Sure use 'SET statement_timeout = 30' for 30 milliseconds.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Jeff Eckermann 2003-11-10 03:47:45 Re: COPY with null
Previous Message Michael Grant 2003-11-10 00:23:19 Re: 'pg_ctl status' not working