Re: Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger

From: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
To: Artus de benque <artusdebenque(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Postgresql bug report - unexpected behavior of suppress_redundant_updates_trigger
Date: 2017-06-19 15:40:11
Message-ID: CAFiTN-tQat3h8qDVH1Z+KpYOL_PwCG0zYDzfbt-YnRxByfhSvw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Mon, Jun 19, 2017 at 5:20 PM, Artus de benque
<artusdebenque(at)gmail(dot)com> wrote:
> postgres=# UPDATE test_table SET field = 'hi' WHERE id = 1;
> UPDATE 0
> test_db=# UPDATE test_table SET field = rpad('', 2001, 'a') WHERE id = 1;
> UPDATE 1
> test_db=# UPDATE test_table SET field = rpad('', 2001, 'a') WHERE id = 1;
> UPDATE 1 <--- BUG: expected 0, as we ran the same update twice

Seems like in "suppress_redundant_updates_trigger" we are comparing
toasted tuple with the new tuple and that is the cause of the bug.

--
Regards,
Dilip Kumar
EnterpriseDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2017-06-19 15:56:22 Re: BUG #14714: long running sessions from remote instance seems to hang some times
Previous Message Tom Lane 2017-06-19 15:33:58 Re: BUG #14714: long running sessions from remote instance seems to hang some times

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-06-19 15:49:22 Re: Preliminary results for proposed new pgindent implementation
Previous Message Tom Lane 2017-06-19 15:32:20 Re: psql's \d and \dt are sending their complaints to different output files