Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrMzE-0003Gn-1p for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 16:57:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrMzC-0004IZ-O6 for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 16:57:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrMzC-0004IQ-96 for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 16:57:22 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nrMz8-0006Ud-2L for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 16:57:20 +0000 Received: by mail-il1-x12a.google.com with SMTP id i15so1924447ilk.5 for ; Wed, 18 May 2022 09:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t7+LPIjppDSMOHFrklSxjKkwqnviwXOOaFd5irW1Ydg=; b=yDUTHQRHz6oRTBfohKpdFd3E2CtWL/x4HijVqPeIVFXkkq02pldngAt6MFgpMP7G+y znsbfE3eGU6yhHupaDVKF4n2aqxQV2qpCQ/L0Sciz9wfN6fddf+v6vQxxEo6WSvDf2NK yQu9YbITe/vhm2BM+QkvTvedGQzvpuvvUHQ0uPgVNfOl+r5jaTHt1cKPPGb+dleQ2zAZ Oh5MIhSk7XuZDgHHZvmShQPsfy0d0pXjHJ7JA9MnKtx+BIVXxXNji0oX+YzsG812jU/P /027CLfwImgdhJK+7Yq4zN2yP1jad4UVGT8t/wOCh3KWPbOQmFVJEyu3o9GEAyeWOdBv voYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t7+LPIjppDSMOHFrklSxjKkwqnviwXOOaFd5irW1Ydg=; b=zlmGOnOu8RbIn5YrFCHgagMWJN6Xx8trbcRV0boQPqDZb76JI5p/UE8i7+mXuHTb4O pOTgsJTxmPUBaFkdfTBjhADZuZfhYqvxZO33jpu+Yl25Bcw+990iKVhsUwpLFRXOy6Ea M5my0dQ13wmD075y8OLUBSFDNnJr6u8+ZKKKgImf3Iq9LapkqQ0LfS3KDwosmj6/Ws66 J/1kBCFn0bdKKb+E3IjFVli5ZudtY9IcBGXr0pF7oNLd98rlC67p3/Afe0CG99G64CKW N6IJLwOKlJ6jBB/FjE1a3XdAxSmuZP/f6njLo6VlGAlxxx07rYBzyYdBsu2n7AO8zviN a+/Q== X-Gm-Message-State: AOAM533Npp+9ZW9A/Z/70UrzfRsXxqtxpI2haRRFjAI/igRwwKWdqEED dPMp8yZEsaU1Bwy1Z6WP5qITOw== X-Google-Smtp-Source: ABdhPJzCE4NfJHgNKXsn6MkI3aFBfOqz/VCsuF3xKXZDSYrDXWq0J78I4aeD1BVikm18HFpS1TCy5w== X-Received: by 2002:a05:6e02:1b03:b0:2d1:249b:f94e with SMTP id i3-20020a056e021b0300b002d1249bf94emr351617ilv.219.1652893037422; Wed, 18 May 2022 09:57:17 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id cd21-20020a0566381a1500b0032b3a781776sm4258jab.58.2022.05.18.09.57.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2022 09:57:16 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 502BB8015BC; Wed, 18 May 2022 11:57:15 -0500 (CDT) Date: Wed, 18 May 2022 11:57:15 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Peter Eisentraut , Amit Langote , Japin Li , Zhihong Yu , Simon Riggs , pgsql-hackers@lists.postgresql.org, Tomas Vondra , Daniel Westermann , Erik Rijkers , Jaime Casanova , Andres Freund Subject: Re: support for MERGE Message-ID: <20220518165715.GJ19626@telsasoft.com> References: <20220511163350.GL19626@telsasoft.com> <202205181642.3dlxbkt3f64g@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202205181642.3dlxbkt3f64g@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 18, 2022 at 06:42:38PM +0200, Alvaro Herrera wrote: > On 2022-May-11, Justin Pryzby wrote: > > > I suggest to reference the mvcc docs from the merge docs, or to make the merge > > docs themselves include the referenced information. > > > > diff --git a/doc/src/sgml/ref/merge.sgml b/doc/src/sgml/ref/merge.sgml > > index f68aa09736c..99dd5814f36 100644 > > --- a/doc/src/sgml/ref/merge.sgml > > +++ b/doc/src/sgml/ref/merge.sgml > > @@ -544,6 +544,7 @@ MERGE total_count > > UPDATE if a concurrent INSERT > > occurs. There are a variety of differences and restrictions between > > the two statement types and they are not interchangeable. > > + See for more information. > > Reading the paragraph, I think it may be better to do it the other way > around: first mention that concurrency is described in the MVCC page, > then explain that INSERT ON CONFLICT also exists. What do you think of > the attached? Hmm, it seems odd to put "see also" first. My original complaint is that 1) merge.sgml doesn't include the detailed information; but 3) mentions it vaguely without linking to it: "There are a variety of differences and restrictions between the two statement types and they are not interchangeable." I prefer my original, but the most important thing is to include the link at *somewhere*. -- Justin