Re: HOT update: why must ALL indexes should be update? - Mailing list pgsql-general

From Tom Lane
Subject Re: HOT update: why must ALL indexes should be update?
Date
Msg-id 3338045.1682086782@sss.pgh.pa.us
Whole thread Raw
In response to HOT update: why must ALL indexes should be update?  (Daniel Wu <staywithpin@gmail.com>)
Responses Re: HOT update: why must ALL indexes should be update?
List pgsql-general
Daniel Wu <staywithpin@gmail.com> writes:
> We have many indexes on a table. The chance is that any column could be
> some part of an index. I understand that when an index has a column that is
> updated, we can't use HOT, because the index entry could point to a totally
> different row. But if I have 10 indexes, if only 1 index will be updated,
> why the rest 9 indexes couldn't use HOT update?

Whether it's a HOT update is a property of the table row, not of
individual indexes.

            regards, tom lane



pgsql-general by date:

Previous
From: Daniel Wu
Date:
Subject: HOT update: why must ALL indexes should be update?
Next
From: Tom Lane
Date:
Subject: Re: Why does the planner reduce the planned rows when filtering single values in an array