Re: Missing feature - how to differentiate insert/update in plpgsql function?

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: Pgsql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Missing feature - how to differentiate insert/update in plpgsql function?
Date: 2017-02-15 15:04:07
Message-ID: 20170215150407.GE25364@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 15, 2017 at 02:58:08PM +0000, Albe Laurenz wrote:
> 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.

Yeah, I'd rather not depend on things like xids for production
(somewhat) code.

Best regards,

depesz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2017-02-15 15:25:48 Re: Missing feature - how to differentiate insert/update in plpgsql function?
Previous Message Karsten Hilbert 2017-02-15 14:59:12 Re: Missing feature - how to differentiate insert/update in plpgsql function?