before insert for each row trigger on upsert

From: Ted Toth <txtoth(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: before insert for each row trigger on upsert
Date: 2020-02-20 20:17:25
Message-ID: CAFPpqQH+6_mbJV2f5Nzm21Bg-G9GU_b91irDg+==y=6aMKgjVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm a little confused why the before insert trigger fires al all but since
it does is there a way to know that an update will occur? Basically I
don't want the trigger affect the row on update.

Ted

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-02-20 20:32:09 Re: before insert for each row trigger on upsert
Previous Message Tom Lane 2020-02-20 19:47:47 Re: Error “cache lookup failed for function”