Re: INSERT ... RETURNING documentation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: INSERT ... RETURNING documentation
Дата
Msg-id 1566148.1721943723@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: INSERT ... RETURNING documentation  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Thursday, July 25, 2024, PG Doc comments form <noreply@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



В списке pgsql-docs по дате отправления: