This is where a nice query/manipulation language come handy http://www.rethinkdb.com/api/#js
PostgreSQL:
ALTER TABLE posts RENAME COLUMN author TO writer;
MongoDB: db.posts.update({}, {$rename:{"author":"writer"}}, false, true);
(I'm excluding RethinkDB since it's still under development and doesn't have a rename command yet) r.table('posts').replace(function(item) { return item.without('author').merge({writer: item('name')}); })