EnterpriseDB / mongo_fdw

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

could not retrieve document count for collection cold not collect statistics about foreign table #87

Closed fanhongli closed 7 years ago

fanhongli commented 7 years ago

could not retrieve document count for collection

cold not collect statistics about foreign table

ahsanhadi commented 7 years ago

Can you please share a complete test case?

fanhongli commented 7 years ago

analyze table1

fanhongli commented 7 years ago

i want to use parallel to mongodb " group by "

fanhongli commented 7 years ago

i found it in mongo_wrapper_meta.c MongoAggregateCount if (bson_iter_init_find(&it, reply, "n")){ count = BsonIterDouble(&it);

that was verry .....

fanhongli commented 7 years ago

it should change to count = BsonIterDouble(&it); if( count==0 ) { count = BsonIterInt32(&it);
}