hubert depesz lubaczewski wrote:
> I have a function, in PostgreSQL 9.6, which does:
>
> INSERT INTO table () values (...)
> ON CONFLICT DO UPDATE ...;
>
> The thing is that the function should return information whether the row
> was modified, or created - and currently it seems that this is not
> available. Or am I missing something?
Maybe the following answer can help:
http://stackoverflow.com/a/39204667/6464308
I don't really know how stable that (undocumented) behaviour will be, though.
Yours,
Laurenz Albe