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)
Список
Дерево обсуждения
[PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Amit Kapila <amit.kapila16@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax David Steele <david@pgmasters.net>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax movead li <movead.li@highgo.ca>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Pantelis Theodosiou <ypercube@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Ibrar Ahmed <ibrar.ahmad@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Marko Tiikkaja <marko@joh.to>
Re: [PATCH] Implement INSERT SET syntax Vik Fearing <vik.fearing@2ndquadrant.com>
Re: [PATCH] Implement INSERT SET syntax Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Implement INSERT SET syntax Ibrar Ahmed <ibrar.ahmad@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Marko Tiikkaja <marko@joh.to>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
Re: [PATCH] Implement INSERT SET syntax Ibrar Ahmed <ibrar.ahmad@gmail.com>
Re: [PATCH] Implement INSERT SET syntax Gareth Palmer <gareth@internetnz.net.nz>
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 по дате отправления