Mihail Nikalayeu <mihailnikalayeu@gmail.com> wrote:
> Hello, everyone!
>
> Some comments for v43:
Thanks!
> ------------------------------
>
> src/backend/catalog/index.c:766,1464-1469
>
> "bool progress = (flags & INDEX_CREATE_REPORT_PROGRESS) != 0;"
>
> AFAIU gin, hash and btree (at least) still just unconditionally write
> PROGRESS_CREATEIDX_* progress.
I think you're right, I'll check it.
> src/backend/catalog/toasting.c:334
>
> "INDEX_CREATE_IS_PRIMARY | INDEX_CREATE_REPORT_PROGRESS, 0,"
>
> Should we add the "progress" flag too here and move it from make_new_heap?
Good catch. I'd prefer removing this hunk from the patch because the index on
the TOAST relation is created while it's still empty.
(The other commens have already been addressed by Alvaro.)
--
Antonin Houska
Web: https://www.cybertec-postgresql.com