Closed gglybin closed 2 years ago
Right, if you use postgresql 12 (or newer) and do not specify --reindex-replace
- pgcompacttable will use native REINDEX INDEX CONCURRENTLY
and other --reindex-*
options makes no sence. But if you are using postgresql older than 12, --reindex-replace
is implied.
I added --reindex-replace
to force old logic just in case. Don't know why it might be preferable when native reindex concurrently is available.
Thank you.
Hello,
Can you please clarify the following:
In my understanding if parameter
--reindex-replace
passed to your tool then only in this case there is a sense of defining the rest of--reindex-*
options. Because in this casepgcompacttable
will use not use native Postgres feature for index rebuildREINDEX INDEX CONCURRENTLY
, but will perform steps like below: 1) Create new index concurrently; 2) Try to replace old index with new one (this is the place where--reindex-*
can help to control this) 3) Drop old index.If
--reindex-replace
is not passed topgcompacttable
then native Postgres feature for index rebuildREINDEX INDEX CONCURRENTLY
will be used and setting additinal--reindex-*
doesn't make any sense.Am I right?
Thank you.