Is there a way to set the timeout on a PostgreSQL query?

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
vfclists
Fresh Boarder
Fresh Boarder
Posts: 15
Joined: 30.10.2007, 00:07

Is there a way to set the timeout on a PostgreSQL query?

Post by vfclists »

Is there a way to set the timeout on a PostgreSQL query?

Is there some Params or other means of telling a query or a connection how long to wait before a query reports a time out? If its not possible at the level of the query can it be set on the connection level?
olehs
Zeos Dev Team
Zeos Dev Team
Posts: 118
Joined: 09.11.2009, 21:05

Post by olehs »

There is a 'connect timeout' parameter:

Code: Select all

ZConnection.Properties.Add('timeout=10');
Post Reply