Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9VBF-0001AJ-9I for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2017 11:58:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e9VBE-00015y-Nx for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Oct 2017 11:58:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e9V9g-0006mT-L8 for pgsql-hackers@postgresql.org; Tue, 31 Oct 2017 11:56:28 +0000 Received: from static-96-255-250-162.washdc.fios.verizon.net ([96.255.250.162] helo=tamriel.snowman.net) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e9V9Y-0003u9-QH for pgsql-hackers@postgresql.org; Tue, 31 Oct 2017 11:56:28 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2D8C45F799; Tue, 31 Oct 2017 07:56:19 -0400 (EDT) Date: Tue, 31 Oct 2017 07:56:19 -0400 From: Stephen Frost To: Simon Riggs Cc: Robert Haas , Peter Geoghegan , Michael Paquier , PostgreSQL-development Subject: Re: MERGE SQL Statement for PG11 Message-ID: <20171031115618.GQ4628@tamriel.snowman.net> References: <20171030185511.GJ4628@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FkkqDIBV64S0HxLI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --FkkqDIBV64S0HxLI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Simon, * Simon Riggs (simon@2ndquadrant.com) wrote: > On 30 October 2017 at 19:55, Stephen Frost wrote: > > I don't think MERGE should be radically different from other database > > systems and just syntax sugar over a capability we have. >=20 > I've proposed a SQL Standard compliant implementation that would do > much more than be new syntax over what we already have. >=20 > So these two claims aren't accurate: "radical difference" and "syntax > sugar over a capability we have". Based on the discussion so far, those are the conclusions I've come to. Saying they're isn't accurate without providing anything further isn't likely to be helpful. > > Time changes > > many things, but I don't think anything's changed in this from the prior > > discussions about it. >=20 > My proposal is new, that is what has changed. I'm happy to admit that I've missed something in the discussion, but =66rom what I read the difference appeared to be primairly that you're proposing it, and doing so a couple years later. > At this stage, general opinions can be misleading. I'd certainly love to see a MERGE capability that meets the standard and works in much the same way from a user's perspective as the other RDBMS' which already implement it. From prior discussions with Peter on exactly that subject, I'm also convinced that having that would be a largely independent piece of work from the INSERT .. ON CONFLICT capability that we have (just as MERGE is distinct from similar UPSERT capabilities in other RDBMSs). The goal here is really just to avoid time wasted developing MERGE based on top of the INSERT .. ON CONFLICT system only to have it be rejected later because multiple other committers and major contributors have said that they don't agree with that approach. If, given all of this discussion, you don't feel that's a high risk with your approach then by all means continue on with what you're thinking and we can review the patch once it's posted. Thanks! Stephen --FkkqDIBV64S0HxLI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJZ+GTiAAoJEO1sijiDR2RVSD0QAIfRdVp8EZhiyYgaA5GJeiqV WGGImqg0V89MWmzCJniZ2kKwAC263nL7anZ6CQSDN0pOTtvVFy0Vupi/tiCMBu4M cTgYHSzE1e1KHvlT0B4YGjmb1+n2cloi1D4E5OBE0GVKNxdarSZ1i5WyQbEOXpDh Q+vOwxIzJe6hNGd9HHMCOYtlowtZzJM3oES16b32TFC79M2T3BJwK5iJlPSyzF/e QffGtlWW+2abBB9GVlPN+P2jVxgCxWPF3UKcIP4Q0zgjMVg/G2WsMr7SGk922X/N N0CeZky0q9CioAOw14KnZSzglhZbobdEE+bTFxKWJ2mDIfAFDmRlV82WvG/FDcWz uT3uGaOO6JU1/qZfWbTtAyMSKZTSMhvPYrcaWRpNffbamglMprB+rKrMBcTynMO9 hlj3aK5VjF1+nsypu2+RZcH0ZWbDqTCNOJtMAomCNLnoZloT2C3eTcZZ9M5jrc79 ClSLU4q9bfkWIfX4yUa4C3fUTy8UmKCrCs/3bzjB+52pg5rgc3vC0TlO1gE2vN+1 WpFaExJj2lJmS3LSToXGO9qPE4pHzSksd8LfmTLDtGnbjldynJDabPx3lJHGfMCS mmB8B5QHvvfoweR6ZDnenOvqfjtTx0bZvVtRNGeyEwAI1DkrExOisffi96TM9+0v 30ocku4ak3dEaQdF6ata =OTgV -----END PGP SIGNATURE----- --FkkqDIBV64S0HxLI--