Re: [PATCH] Initial progress reporting for COPY command
От | Fujii Masao |
---|---|
Тема | Re: [PATCH] Initial progress reporting for COPY command |
Дата | |
Msg-id | 8a70c738-d50b-4811-a1dc-5e16a5679e22@oss.nttdata.com обсуждение исходный текст |
Ответ на | Re: [PATCH] Initial progress reporting for COPY command (Josef Šimánek <josef.simanek@gmail.com>) |
Ответы |
Re: [PATCH] Initial progress reporting for COPY command
|
Список | pgsql-hackers |
On 2020/06/21 20:33, Josef Šimánek wrote: > > > po 15. 6. 2020 v 6:39 odesílatel Fujii Masao <masao.fujii@oss.nttdata.com <mailto:masao.fujii@oss.nttdata.com>> napsal: > > > > On 2020/06/14 21:32, Josef Šimánek wrote: > > Hello, as proposed by Pavel Stěhule and discussed on local czech PostgreSQL maillist (https://groups.google.com/d/msgid/postgresql-cz/CAFj8pRCZ42CBCa1bPHr7htffSV%2BNAcgcHHG0dVqOog4bsu2LFw%40mail.gmail.com?utm_medium=email&utm_source=footer), Ihave prepared an initial patch for COPY command progress reporting. > > Sounds nice! > > > > file - bool - is file is used? > > program - bool - is program used? > > Are these fields really necessary in a progress view? > What values are reported when STDOUT/STDIN is specified in COPY command? > > > For STDOUT and STDIN file is true and program is false. Could you tell me why these columns are necessary in *progress* view? If we want to see what copy command is actually running, we can see pg_stat_activity, instead. For example, SELECT pc.*, a.query FROM pg_stat_progress_copy pc, pg_stat_activity a WHERE pc.pid = a.pid; > > > file_bytes_processed - amount of bytes processed when file is used (otherwise 0), works for both direction ( > > FROM/TO) when file is used (file = t) > > What value is reported when STDOUT/STDIN is specified in COPY command? > > > For my first patch nothing was reported on STDOUT/STDIN usage. I'll attach new patch soon supporting those as well. Thanks for the patch! With the patch, pg_stat_progress_copy seems to report the progress of the processing on file_fdw. Is this intentional? Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
В списке pgsql-hackers по дате отправления: