Re: Packages: Again

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Serge Rielau <serge(at)rielau(dot)com>
Cc: Kevin Grittner <kgrittn(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Wolfgang Wilhelm <wolfgang20121964(at)yahoo(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Packages: Again
Date: 2017-01-14 00:24:48
Message-ID: CAM3SWZTZOEOROvdPPQqoJF--Qmadueb95cbZbLRNAT+mYXqFjw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 13, 2017 at 3:44 PM, Serge Rielau <serge(at)rielau(dot)com> wrote:
> And sometimes the community DOES go its own way rather than implementing the standard. For example by rejecting the MERGE statement in favor of another syntax and semantic.

That's total nonsense.

MERGE isn't UPSERT, and isn't even in competition with UPSERT as a
feature. I've written reams of text explaining why this is so in
precise detail, with reference to the implementations of all other
major systems [1][2]. The general consensus is that we might one day
have both UPSERT and MERGE, just like Teradata. They really are that
different that that would be perfectly reasonable. Any application
that uses MERGE and assumes UPSERT-like guarantees should be assumed
broken. We didn't diverge from the SQL standard on a whim. This was
discussed, on and off, for over a year.

[1] https://wiki.postgresql.org/wiki/UPSERT#MERGE_disadvantages
[2] https://www.postgresql.org/message-id/CAM3SWZRP0c3g6+aJ=YYDGYAcTZg0xA8-1_FCVo5Xm7hrEL34kw@mail.gmail.com
--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2017-01-14 00:36:18 Re: Protect syscache from bloating with negative cache entries
Previous Message Serge Rielau 2017-01-13 23:44:39 Re: Packages: Again