pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Condor <condor@stz-bg.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to avoid UPDATE on same data in table ?
Date: Mon, 03 Feb 2020 18:24:21 +0200
Message-ID: <62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com> (raw)
In-Reply-To: <BA255161-947F-4972-AF41-996F02FFB414@n26.com>
References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com>
	<b040dcda-862b-c254-9060-3edb74f6a3ab@aklaver.com>
	<22cd5ff9ef7651d08628567eafad0de1@stz-bg.com>
	<BA255161-947F-4972-AF41-996F02FFB414@n26.com>

On 03-02-2020 10:29, Andrei Zhidenkov wrote:
> Have you tried to use built-in suppress_redundant_updates_trigger[1]
> for this?
> 
> 1. https://www.postgresql.org/docs/12/functions-trigger.html
> 

No,
solution point me Adrian Klaver it's working for me. I look at page, but 
this probably is build in function and can't be changed.
In my case I need to change lastchange column to know which row is 
changed and when.

Regards,
HS





view thread (9+ messages)

Message-ID: <62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com>
Permalink:  ../62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com/
Also on:    postgresql.org/message-id/62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com

 · 

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: condor@stz-bg.com
  Subject: Re: How to avoid UPDATE on same data in table ?
  In-Reply-To: <62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com>
  References: <1a25799e60c79c65575f6e6375c96a52@stz-bg.com> <b040dcda-862b-c254-9060-3edb74f6a3ab@aklaver.com> <22cd5ff9ef7651d08628567eafad0de1@stz-bg.com> <BA255161-947F-4972-AF41-996F02FFB414@n26.com> <62ebca7bbcd3e89c00d5db9fd8f35479@stz-bg.com>

* 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