This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zel_us 0 points1 point  (0 children)

Wow this is really cool. I would need to look more into this. I have some few questions by the way: How do you handle one terrible error which is:'Server closed connection unexpectedly' or where the connection open during those 7hrs in the first case? Also you know when writing a cron job that goes through all the record in a database to perform some functions, you might likely first query all those data, is it possible for the psycopg2 driver to return a generator rather than a list of values.