Question about HoT updates and conditional indexes

From: Maxim Boguk <maxim(dot)boguk(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Question about HoT updates and conditional indexes
Date: 2011-12-14 04:54:16
Message-ID: CAK-MWwQJcu7httRK=iM5_ESE23kJr=3d7UdcMgz_7egQsjU+PA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lets assume I have a table with an index defined as:
create index test_key on test_table(mtime) where status=1;

Will be update such as:
update test_table set mtime=NOW() where id=10;
threated as HOT update if the entry with id=10 have status=0 ?

That update seems valid one for using HOT, however in practice it seems use
the full update way.

--
Maxim Boguk
Senior Postgresql DBA.

Phone RU: +7 910 405 4718
Phone AU: +61 45 218 5678

Skype: maxim.boguk
Jabber: maxim(dot)boguk(at)gmail(dot)com

LinkedIn profile: http://nz.linkedin.com/in/maximboguk
If they can send one man to the moon... why can't they send them all?

МойКруг: http://mboguk.moikrug.ru/
Сила солому ломит, но не все в нашей жизни - солома, да и сила далеко не
все.

Browse pgsql-general by date

  From Date Subject
Next Message senthilnathan 2011-12-14 05:10:06 Copying timeline history file to standby
Previous Message joe.conway 2011-12-14 02:47:11 [GENERAL] PGDay.SoCal @ SCALE 10X