Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

сluster index & Update by field #9

Open
makm opened this issue Apr 8, 2015 · 1 comment
Open

сluster index & Update by field #9

makm opened this issue Apr 8, 2015 · 1 comment
Labels

Comments

@makm
Copy link

makm commented Apr 8, 2015

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

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

@grayhemp
Copy link
Owner

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 grayhemp added the bug label Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants