Per row status during INSERT .. ON CONFLICT UPDATE?

From: Robins Tharakan <tharakan(at)gmail(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Per row status during INSERT .. ON CONFLICT UPDATE?
Date: 2015-05-19 12:23:09
Message-ID: CAEP4nAwCXk2+YvxgsULbwaT1Qzmcs1A1eYJr98cBv-=3Xm3tTA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Is there a way to know which rows were INSERTed and UPDATEd when doing a
INSERT ... ON CONFLICT UPDATE? Probably via pseudo column indicating INSERT
/ UPDATE ?

The RETURNING clause just allows us to return columns, but am unable to
find a way to know 'what' happened to a given row.

​Any pointers would be helpful.
Couldn't find anything related in 9.5devel docs either.​

--
thanks

Robins

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2015-05-19 12:45:38 Re: Parallel Seq Scan
Previous Message Andrew Gierth 2015-05-19 11:19:55 Re: upper planner path-ification