Re: SET syntax in INSERT

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: SET syntax in INSERT
Дата
Msg-id CAFj8pRA+aOXgraxCBQe_fnVK5p0SSKAFRrFJJUsYcJg1PxPPkg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: SET syntax in INSERT  (Marko Tiikkaja <marko@joh.to>)
Ответы Re: SET syntax in INSERT  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers


2016-01-14 20:09 GMT+01:00 Marko Tiikkaja <marko@joh.to>:
On 2016-01-14 8:06 PM, Pavel Stehule wrote:
Probably there is less risk than 7 years ago, but still creating own syntax
isn't the best idea. This is syntactic sugar only and different from ANSi
SQL or common standard.

So is RETURNING,

is it ANSI SQL redundant?
 
UPSERT,

the behave is partially different than MERGE, so different syntax is 100% valid
 
PL/PgSQL and many other useful features.

PL/pgSQL is PL/SQL clone, and because the base is Ada, it cannot be compatible with SQL/PSM.

Regards

Pavel
 


.m

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

Предыдущее
От: Marc Mamin
Дата:
Сообщение: Re: SET syntax in INSERT
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SET syntax in INSERT