"David G. Johnston" <david.g.johns...@gmail.com> writes: > On Thursday, July 25, 2024, PG Doc comments form <nore...@postgresql.org> > wrote: >> The grammar >> [ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ] >> seems wrong to me.
> Yes, the word returning makes it the returning clause. This should be > written: > [ Returning { * | output_expression [ [ AS ] output_name ] } [, …] ] Agreed. > Related, select says: > [ * | expression [ [ AS ] output_name ] [, …] ] I imagine the RETURNING synopsis was copied from that one :-( Yes, let's change that too. regards, tom lane