The RETURNING clause lets INSERT, UPDATE, and DELETE statements return data about the rows they affected — most commonly the auto-generated ID after an insert, but also any columns or computed values. It saves a separate query and is a convenient PostgreSQL feature.
