Re: WIP: Covering + unique indexes.
От | Anastasia Lubennikova |
---|---|
Тема | Re: WIP: Covering + unique indexes. |
Дата | |
Msg-id | 570521E5.3010306@postgrespro.ru обсуждение исходный текст |
Ответ на | Re: WIP: Covering + unique indexes. (Anastasia Lubennikova <a.lubennikova@postgrespro.ru>) |
Список | pgsql-hackers |
06.04.2016 16:15, Anastasia Lubennikova : > 06.04.2016 03:05, Peter Geoghegan: >> * There is some stray whitespace within RelationGetIndexAttrBitmap(). >> I think you should have updated it with code, though. I don't think >> it's necessary for HOT updates to work, but I think it could be >> necessary so that we don't need to get a row lock that blocks >> non-conflict foreign key locking (see heap_update() callers). I think >> you need to be careful for non-key columns within the loop in >> RelationGetIndexAttrBitmap(), basically, because it seems to still go >> through all columns. UPSERT also must call this code, FWIW. >> >> * I think that a similar omission is also made for the replica >> identity stuff in RelationGetIndexAttrBitmap(). Some thought is needed >> on how this patch interacts with logical decoding, I guess. > > Good point. Indexes are everywhere in the code. > I missed that RelationGetIndexAttrBitmap() is used not only for REINDEX. > I'll discuss it with Theodor and send an updated patch tomorrow. As promised, updated patch is in attachments. But, I'm not an expert in this area, so it needs a 'critical look'. -- Anastasia Lubennikova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
Вложения
В списке pgsql-hackers по дате отправления: