如果CLUSTER
is set on a table ,那么它是否被 pg_dump
应用了?
具体如下:
- 它是否用于对转储中的行进行排序?如果没有,是否有办法做到这一点?
- 是否在使用
pg_restore
时设置在表上?如果没有,是否有办法做到这一点?
最佳答案
转储将包含语句
ALTER TABLE mytable CLUSTER ON anindex;
恢复转储将执行该语句。作为the documentation解释,
This form selects the default index for future
CLUSTER
operations. It does not actually re-cluster the table.
关于postgresql - `CLUSTER` 是否被 `pg_dump` 应用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60976561/