Yeah, I think it could make sense for performance reasons to make a version for Knex, but since I try to stay away from ORMs as much as possible I'm probably not the right one to make it ;)
I also wouldn't put it in the core library anyway, so it should be straight forward for someone else to make a knex-postgres package that does this?