Redis - No clue what you're saying here. If you're using Redis then you're keeping your data in memory and dealing with low level structures. It's for completely different use cases. A classic example is rate limiting for an API. Doing it in Postgres with a disk I/O per request would cripple any semi-popular API. The data doesn't need to be exactly persistent (if we miss a few updates due to the server crashing we don't really care). In exchange for that it's blazing fast for individual writes that we can batch together to backup to something like Postgres (or Redis's built in persistence like AOF).
Redis is a good complement to Postgres. It provides caching and fast, non-persistent data store, while Postgres is the durable database.
See for example Mongres, https://github.com/umitanuki/mongres
I hope this allows frameworks like Meteor to trade up to Postgres.
\o/ for PostgreSQL, anyway.
0: http://oldblog.antirez.com/post/redis-persistence-demystifie...
Very cool to build a full text search index based on things inside of JSON fields with about 10 minutes of time.
Yes, using the ->> operator you should be able to create an index on a JSON field, e.g.
CREATE INDEX ON table ((field->>'thing'))
(an index on a JSON column makes no more sense than on e.g. an hstore column)