Re: Adding REPACK [concurrently] - Mailing list pgsql-hackers

From Antonin Houska
Subject Re: Adding REPACK [concurrently]
Date
Msg-id 5667.1774513434@localhost
Whole thread Raw
In response to Re: Adding REPACK [concurrently]  (Mihail Nikalayeu <mihailnikalayeu@gmail.com>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Lakshmi N
Date:
Subject: Re: log XLogPrefetch stats at end of recovery
Next
From: Andrey Borodin
Date:
Subject: Re: Add uuid_to_base32hex() and base32hex_to_uuid() built-in functions