Search Postgresql Archives

Re: Cursor timeout in postgres

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tom

Tom Lane wrote:
Tim Tassonis <timtas@xxxxxxxx> writes:
When examining strange behaviour in one of my programs I found out that I must have somehow gotten into a timeout situation when fetching rows from a cursor. My program read the first row, did some stuff for six minutes and then tried to fetch the second row, which failed. The connection however was still alive and further database access in the program worked m'kay.

Failed how, exactly?  Did anything show up in the postmaster log?

Forgot to check that, sorry. From my program's point of view, it failed silently. When an odbc_exec() succeeds, one generally just loops over the rows by odbc_fetch_row(), until it fails. The fetch might have returned a message, but this was not checked, as odbc_fetch_row() is bound to fail anyway when no more rows are present.

I try to reproduce the situation tomorrow and will also check on any odbc_errmsg() messages and the postmaster log.

Bye
Tim



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux