Option for inserts/updates/deletes on the Postgres adapter to return all columns, not just the id #7856

robertsosinski opened this Issue Oct 5, 2012 · 2 comments

3 participants


Feature request:

By default with Rails, Postgres will return the id of a newly inserted record using returning "id". Sometimes when working with Postgres, tables will have triggers on them that modify the row's data while being saved. As such, it would be great to also provide an option for Postgres to also let insert/updates and deletes to use returning * (which will return the row as it looks after Postgres modified it).

What are everyone's thoughts on this?

Ruby on Rails member

I think the policy is to publish feature requests on the rails-core mailing list. Github Issues is used for bugs and PR with attached code to implement new features but not discussions.

@rafaelfranca, @steveklabnik should this be submitted to rails-core and be closed here on Github?

Ruby on Rails member

Yes please use mailing list.

@arunagw arunagw closed this Oct 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment