If you're interested in how much computation gets pushed down into the MongoDB database, versus how much gets pulled back into PostgreSQL, you can find some examples here:
http://slamdata.com/blog/2015/12/08/nosql-analytics-for-mong...
Warning: It's not pretty.