pgtoolkit icon indicating copy to clipboard operation
pgtoolkit copied to clipboard

сluster index & Update by field

Open makm opened this issue 10 years ago • 1 comments

После reindex concurrency исчезает атрибут 'CLUSTER ON' индекса, которым приходится пользоваться в силу того, что pgcompacor зачем-то выбирает произвольное поле для Update By.

Как правильно использовать утилиту ?

makm avatar Apr 08 '15 15:04 makm

Thank you for the feedback. Indeed, CLUSTER ON is a missed functionality in pgcompact. I'm adding the issue to my TODO list for the next minor version.

The "update by" column is not just a random column, it is chosen so that the updates would do the least possible impact on other objects. Here is the logic https://github.com/grayhemp/pgtoolkit/blob/master/lib/PgToolkit/Compactor/Table.pm#L1743-L1776.

grayhemp avatar Apr 10 '15 15:04 grayhemp