Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTG9S-0000HN-5t for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2019 01:34:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTG9O-0003zD-QI for pgsql-general@arkaria.postgresql.org; Wed, 22 May 2019 01:34:38 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTG9O-0003z4-CU for pgsql-general@lists.postgresql.org; Wed, 22 May 2019 01:34:38 +0000 Received: from mail-it1-x136.google.com ([2607:f8b0:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTG9J-0000yi-QY for pgsql-general@postgresql.org; Wed, 22 May 2019 01:34:37 +0000 Received: by mail-it1-x136.google.com with SMTP id g23so4189760iti.1 for ; Tue, 21 May 2019 18:34:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=I4+FMIZAUHEQpEIO43fblmymx6EZDTIIEnhz/AsqEoU=; b=a496vTiVG5f1YvkzmpVYb+yztH2WI5Bf60f1I+k/N1B4z5kjMHx6Fblt/mx1HTodaj T4MTIwFVpbOVuck0O1WloRhnjfyGjZ+45/dPufqR/VV4/4GLajsbnOnsouScqOWSdolq iHfMJiQ0txTVSqGbrg6AqbQvKeJ0JlLNfkw6y1HMvpt79GbGD49uElXccNawxP/XlSyX 49b302qhBMlUdFnZoJMETnwH8QPDNsFK/1Bsjiy8IYN6jEyvHx6WV01oSzPQo+QurFHE YWQIO/ORyq26S5mukwsa0W41z7y/bjA8kvra2TXvu+4kqrHTWjvs3hCu9Vw/q9IxE8q/ ViFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=I4+FMIZAUHEQpEIO43fblmymx6EZDTIIEnhz/AsqEoU=; b=aO+U2Zxzgy2LbDYRaKfK/qjC6w0GxT654lITIW958+W3F2eg0SaPAsxmD4klJZ1dgE /bcqRP+F5tN4ZZVICGC43lPXLPov4Al+OmCbQ4A7q6mq8V863khcmjtBT8PL166hT7o0 O+qowhVekW8RkBVzYIMGRzZU7HjkTVlN6m22C22OZRvI8FAd3hFCmYZNyAoCSxUZxGgT 8d0PWkv4X22r2AuWdBD1dlUdiox+okiEitwag3OyXqQonnt8N4/B4kkXihswvg8sxu2H Rhnn7dPGeiZ0Gb2z5TkdX48XaNq122g6ub7k+ElvqiSSBFnInu25lLIsxJiVWlQIGggh z4tw== X-Gm-Message-State: APjAAAX3qMUwUykV90bBSE6RinW96PwzCIYtkPWYcnnUvqpuIbInwPfA 8d1EtPaVm/gbgZWkM94N8yC7X7T7YgY= X-Google-Smtp-Source: APXvYqzvA91wfVOLAe1gts+BjQ2FoaW0hUBc8lfZTs5l2K1br3iR9gysF4bFxDmoGTB5FC+p8BFA/g== X-Received: by 2002:a24:1796:: with SMTP id 144mr6354008ith.18.1558488871229; Tue, 21 May 2019 18:34:31 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id a2sm7111246iok.47.2019.05.21.18.34.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 May 2019 18:34:30 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id 01F3F800AA7; Tue, 21 May 2019 20:34:28 -0500 (CDT) Date: Tue, 21 May 2019 20:34:28 -0500 From: Justin Pryzby To: pgsql-general@postgresql.org Subject: distinguish update from insert (on conflict) Message-ID: <20190522013428.GG4426@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Is it still impossible to distinguish whether a row was inserted vs updated ? The latest I can see is here: https://wiki.postgresql.org/wiki/UPSERT#RETURNING_behavior ..but I'm hopeful that the 4 year old wiki page is out of date. Justin