Обсуждение: Question about HoT updates and conditional indexes

Поиск
Список
Период
Сортировка

Question about HoT updates and conditional indexes

От
Maxim Boguk
Дата:
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.boguk@gmail.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/
Сила солому ломит, но не все в нашей жизни - солома, да и сила далеко не все.