| From: | Manu <manuelreyesbravo(at)gmail(dot)com> |
|---|---|
| To: | Antonin Houska <ah(at)cybertec(dot)at> |
| Cc: | Alberto Piai <alberto(dot)piai(at)gmail(dot)com>, Rahila Syed <rahilasyed90(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, alvherre(at)kurilemu(dot)de, pgsql-hackers(at)lists(dot)postgresql(dot)org, bharath(dot)rupireddyforpostgres(at)gmail(dot)com, mihailnikalayeu(at)gmail(dot)com, adam8157(at)gmail(dot)com |
| Subject: | Re: Allow progress tracking of sub-commands |
| Date: | 2026-12-05 00:20:02 |
| Message-ID: | 179643000237.530689.7696737475283443915@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Antonin,
v08 fixes the session-wide progress issue I saw with file_fdw.
It also restores the command name during the REINDEX CONCURRENTLY
waits. I still see a difference in the OIDs reported there.
> How does CREATE INDEX relate to FDW?
My comment was about a later CREATE INDEX on a local table in the same
session. In v07, after a failing qual on a file_fdw scan, both a later
COPY FROM and CREATE INDEX stopped showing progress in that session.
With v08 both show progress again.
> Why is it wrong to call pgstat_progress_start_command() for each index?
You're right that master starts progress for each index. My concern
was what the wait phases reported. In v08 the command is present but
index_relid is zero during the waits before build, before validation,
and before marking dead.
The attached incremental diff preserves the heap and index OIDs in
those waits. With it, the progress rows matched master for both
REINDEX INDEX CONCURRENTLY and REINDEX TABLE CONCURRENTLY on a table
with two indexes. The file_fdw regression output, including ANALYZE,
matched v08. For the comparison on current master (a775ff711a0), my
test tree also had a local adaptation of v08 to the REPACK changes.
Thanks,
Manu
| Attachment | Content-Type | Size |
|---|---|---|
| 0001-preserve-reindex-progress-oids.txt | text/plain | 3.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | surya poondla | 2026-12-04 23:26:08 | Re: Standby writes pages past minRecoveryPoint after crash recovery |