Re: [GENERAL] Detecting query timeouts properly

2014-09-22 Thread Albe Laurenz
Evan Martin wrote: > I'm using PostgreSQL 9.2.8 via Npgsql 2.2.0. When a query times out it > returns error 57014 with the message "canceling statement due to > statement timeout". I use the message to detect the timeout and re-try > in some cases. It seems a bit wrong to rely on the message, thoug

[GENERAL] Detecting query timeouts properly

2014-09-21 Thread Evan Martin
Hello, I'm using PostgreSQL 9.2.8 via Npgsql 2.2.0. When a query times out it returns error 57014 with the message "canceling statement due to statement timeout". I use the message to detect the timeout and re-try in some cases. It seems a bit wrong to rely on the message, though - I presume