Re: update with no changes

From: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: update with no changes
Date: 2021-11-19 17:03:09
Message-ID: CAB-JLwZ66E+1siJBn2TC+_5hkdjB=jp54vDU68CCGX3RNzyOjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> Because it takes resources to determine that nothing changed. If you want
> to opt-in into that there is even an extension trigger that makes doing so
> fairly simple. But it's off by default because the typical case is that
> people don't frequently perform no-op updates so why eat the expense.
>
But it takes resources for other operations, right ?
I think this is not unusual. If an user double click on a grid, just sees a
record and clicks ok to save, probably that application calls an update
instead of seeing if some field were changed before that.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-11-19 17:15:57 Re: Improving psql's \password command
Previous Message Gilles Darold 2021-11-19 16:56:20 Re: Pasword expiration warning