EnterpriseDB / mongo_fdw

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

connection pool reconnect after the mongo server restarted #60

Closed lifubang closed 6 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

The last commit on 2016-07-25 is to support mongo replicaSet. Because the primiary and slave servers may be changed when some error occured. For Example: the replset str is : '127.0.0.1:3717,127.0.0.1:4717' sometimes the master is 127.0.0.1:3717, and other times the master is 127.0.0.1:4717 so we need write whole replicaSet server address to ensure mongo always-on.

lifubang commented 7 years ago

61 "add force use server _id when insert a document"

ibrarahmad commented 6 years ago

Please create a new branch with a single commit. I am closing this PR for now.