`post = Post.select("'title'::character(255) as post_title").first` eliminates this 'unknown OID" message but this sql statement just works for PostgreSQL.