+ /* Report total number of heap blocks and collectinf sample row phase*/+ initprog_val[0] = PROGRESS_ANALYZE_PHASE_COLLECT_HEAP_SAMPLE_ROWS;+ initprog_val[1] = totalblocks;+ pgstat_progress_update_multi_param(2, initprog_index, initprog_val);acquire_sample_rows function is called from acquire_inherited_sample_rowsfunction, so adding the phase in that function will provide wrong info. I agree with you. +#define PROGRESS_ANALYZE_PHASE_COLLECT_INH_SAMPLE_ROWS 2why there is no code added for the phase, any specific reason? I am thinking how to report this phase. Do you have any suggestion?
+ /* Report total number of heap blocks and collectinf sample row phase*/+ initprog_val[0] = PROGRESS_ANALYZE_PHASE_COLLECT_HEAP_SAMPLE_ROWS;+ initprog_val[1] = totalblocks;+ pgstat_progress_update_multi_param(2, initprog_index, initprog_val);
acquire_sample_rows function is called from acquire_inherited_sample_rowsfunction, so adding the phase in that function will provide wrong info.
+#define PROGRESS_ANALYZE_PHASE_COLLECT_INH_SAMPLE_ROWS 2why there is no code added for the phase, any specific reason?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных