pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to avoid UPDATE on same data in table ?
Date: Sun, 2 Feb 2020 14:37:30 +0100
Message-ID: <e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de> (raw)
In-Reply-To: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com>
References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com>



Am 02.02.20 um 10:24 schrieb Condor:
> CREATE TRIGGER last_changes
>   BEFORE UPDATE ON status_table
>   FOR EACH ROW
>   WHEN (OLD.* IS DISTINCT FROM NEW.*) 

try to exclude the column lastchange from the comparison.


Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com






view thread (9+ messages)  latest in thread

Message-ID: <e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de>
Permalink:  ../e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de/
Also on:    postgresql.org/message-id/e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas@a-kretschmer.de
  Subject: Re: How to avoid UPDATE on same data in table ?
  In-Reply-To: <e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de>
  References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com> <e290a985-45db-c13e-669c-36e0cd52187a@a-kretschmer.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox