implementation of SET LOCK MODE TO [WAIT [seconds] | NOT WAIT] for ecpq - Mailing list pgsql-interfaces

From Nicolas Bazin
Subject implementation of SET LOCK MODE TO [WAIT [seconds] | NOT WAIT] for ecpq
Date
Msg-id 005b01c1e9a3$c0a6ea30$660d090a@software.ingenico.com.au
Whole thread Raw
List pgsql-interfaces
I need to avoid my process to wait for too long. This syntax is not supported by the BE so I thought I would modify ECPGexecute to use asynchronous functions instead of PQexec. The problem is the NOT WAIT mode which needs some sort of info from the BE to know whether the statement has immediatly started to be executed or is in a queue waiting for its turn.
Any idea or comment on this feature?
 

pgsql-interfaces by date:

Previous
From: "Jeff Flowers"
Date:
Subject: Beginner Programming Question
Next
From: Jimmy Andersson
Date:
Subject: ERROR: No such attribute or function 'oid'