News for hackers. Stuff that matters.
Re:Why HStore2/jsonb is the most important patch of PostgreS... by sandGorgon on Sunday February 23, 2014 @10:44AM (#7286172)
I would like to suggest a modification to the author's thought about an ORM. What would be very cool would be a PG extension that wraps a mongodb compatible Api on top of postgresql.

That should completely short circuit the whole value proposition discussion of pg vs mongo.

Re:Why HStore2/jsonb is the most important patch of PostgreS... by twic on Sunday February 23, 2014 @10:50AM (#7286197)
This could be done fairly easily, perhaps more easily, as a standalone program, i think. Something that exposes a MongoDB-compatible API, and translates requests into libpq to go to a PostgreSQL backend.

You could run it either on the PG host, or on the same host as the apps wanting to talk to PG.

Re:Why HStore2/jsonb is the most important patch of PostgreS... by brannon on Sunday February 23, 2014 @11:07AM (#7286262)
My understanding of all of this is beginner level at best, but isn't that more or less what waterline does? https://github.com/balderdashy/waterline-docs
Re:Why HStore2/jsonb is the most important patch of PostgreS... by twic on Monday February 24, 2014 @02:57PM (#7293043)
Based on a quick look at the documentation, i think the API Waterline exposes to clients is not an imitation of the MongoDB API, which would allow PostgreSQL to be used as a drop-in replacement for MongoDB. Rather, it's its own thing.

Waterline does support both MongoDB and PostgreSQL, though, so you could use it as part of a migration strategy: start with MongoDB, install Waterline backed by MongoDB, migrate your app to use Waterline rather than using MongoDB directly, replace MongoDB with PostgreSQL.

Re:Why HStore2/jsonb is the most important patch of PostgreS... by jeltz on Sunday February 23, 2014 @11:02AM (#7286240)
The guy behind plv8 has already started such a project. I have no idea if it is production ready.

https://github.com/umitanuki/mongres

Re:Why HStore2/jsonb is the most important patch of PostgreS... by sandGorgon on Sunday February 23, 2014 @03:17PM (#7287385)
this is very cool. I wonder what happened to it.