Closed freshfx closed 2 years ago
I'm also experiencing issues with Mongo 3.6, which downgrading to 3.4 allowed me to bypass. In my case, simple queries like SELECT * FROM users
worked fine, while INSERT
would occasionally fail, and aggregates would consistently fail. My stacktraces follow a similar path, and they all seem to go through MongoGetForeignPaths -> ForeignTableDocumentCount -> MongoAggregateCount
and then cause a corruption on either bson_copy_to
or bson_destroy
.
I'm running the latest mongo_fdw
with the Makefile tweaked to use dependencies I installed at the system level through the Arch Linux repos:
community/mongo-c-driver 1.10.2-1 [installed]
core/json-c 0.13.1-1 [installed]
If you need any more info, I'd be happy to help repro. Thanks for maintaining the project!
Thanks, @freshfx and @tbutts for reporting an issue here.
Currently, we do support upto MongoDB 4.4 and so, MongoDB 3.6 is also supported. Can you please check if reported issue is been resolved or not? If it still exists please let us know otherwise can you please close this ticket?
Sadly I can't be of much help as I no longer have a need for the mongo_fdw or an env to test in. But thank you for looking at this issue again.
Thanks, @tbutts. Closing.
I'm running mongo and postgres in different docker container.
I created a
users
collection in thetest
database and inserted one document.To create the foreign tables i run following codes:
Every time I try so query a select i get the following error:
If I run mongo 3.4 everything works like a charm
Does this extension support mongo 3.6?