Re: [PATCH] Implement INSERT SET syntax

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Implement INSERT SET syntax
Дата
Msg-id 24422.1585075555@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Implement INSERT SET syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I wrote:
> No doubt that's all fixable, but the realization that some cases of
> this syntax are *not* just syntactic sugar for standards-compliant
> syntax is giving me pause.  Do we really want to get out front of
> the SQL committee on extending INSERT in an incompatible way?

One compromise that might be worth thinking about is to disallow
multiassignments in this syntax, so as to (1) avoid the possibility
of generating something that can't be represented by standard INSERT
and (2) get something done in time for v13.  The end of March is not
that far off.  Perhaps somebody would come back and extend it later,
or perhaps not.

A slightly more ambitious compromise would be to allow multiassignment
only when the source can be pulled apart into independent subexpressions,
comparable to the restriction we used to have in UPDATE itself (before
8f889b108 or thereabouts).

In either case the transformation could be done right in gram.y and
a helpful error thrown for unsupported cases.

            regards, tom lane



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

Предыдущее
От: Jeremy Finzel
Дата:
Сообщение: How to only auto-restart BGW only on crash or _PG_init
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Add A Glossary