Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
robertsosinski opened this Issue · 2 comments

3 participants

Robert Sosinski Yves Senn Arun Agrawal
Robert Sosinski

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?

Yves Senn
Owner

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?

Arun Agrawal
Collaborator

Yes please use mailing list.

Arun Agrawal arunagw closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.