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 1k5ret-00061q-AN for pgsql-general@arkaria.postgresql.org; Wed, 12 Aug 2020 14:23:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5res-0003nn-5c for pgsql-general@arkaria.postgresql.org; Wed, 12 Aug 2020 14:23:14 +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 1k5rer-0003ne-U6 for pgsql-general@lists.postgresql.org; Wed, 12 Aug 2020 14:23:13 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k5rel-0003T6-Ga for pgsql-general@postgresql.org; Wed, 12 Aug 2020 14:23:12 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 09F6B2052C1BA for ; Wed, 12 Aug 2020 07:23:04 -0700 (MST) Date: Wed, 12 Aug 2020 07:23:04 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1597242184038-0.post@n3.nabble.com> Subject: insert on conflict postgres returning distinction MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk is there any way to distinct between updated and inserted rows in RETURNING clause when ON CONFLICT UPDATE was used? -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html