EnterpriseDB / mongo_fdw

PostgreSQL foreign data wrapper for MongoDB
GNU Lesser General Public License v3.0
330 stars 70 forks source link

mongo connection pool can reconnect to the server after the mongo ser… #59

Closed lifubang closed 8 years ago

lifubang commented 8 years ago

After the mongo server restarted, the query result is wrong, because the mongo connecction pool can't reconnect to the server. This problem is fixed by using mongo_cleanup_connection when there is a mongoc_cursor_error. I have verify it in my server.

I have reported this problem in #57 . thx.

lifubang commented 8 years ago

I have improved the solution.