Re: [HACKERS] CLUSTER command progress monitor
Dmitry Dolgov <9erthalion6@gmail.com>
From: Dmitry Dolgov <9erthalion6@gmail.com>
To: yamada.tatsuro@lab.ntt.co.jp
Cc: pg@bowt.ie, Robert Haas <robertmhaas@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>,
Jeff Janes <jeff.janes@gmail.com>, Thomas Munro <thomas.munro@enterprisedb.com>,
Michael Paquier <michael.paquier@gmail.com>
Date: 2018-11-29T12:20:28Z
Lists: pgsql-hackers
> On Fri, Aug 24, 2018 at 7:06 AM Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp> wrote: > > On 2017/11/22 6:07, Peter Geoghegan wrote: > > On Mon, Oct 2, 2017 at 6:04 AM, Robert Haas <robertmhaas@gmail.com> wrote: > >> Progress reporting on sorts seems like a tricky problem to me, as I > >> said before. In most cases, a sort is going to involve an initial > >> stage where it reads all the input tuples and writes out quicksorted > >> runs, and then a merge phase where it merges all the output tapes into > >> a sorted result. There are some complexities; for example, if the > >> number of tapes is really large, then we might need multiple merge > >> phases, only the last of which will produce tuples. > > > > This would ordinarily be the point at which I'd say "but you're very > > unlikely to require multiple passes for an external sort these days". > > But I won't say that on this thread, because CLUSTER generally has > > unusually wide tuples, and so is much more likely to be I/O bound, to > > require multiple passes, etc. (I bet the v10 enhancements > > disproportionately improved CLUSTER performance.) > > Hi, > > I came back to develop the feature for community. > V4 patch is corrected these following points: > > - Rebase on master (143290efd) > - Fix document > - Replace the column name scan_index_relid with cluster_index_relid. > Thanks to Jeff Janes! > > I'm now working on improving the patch based on Robert's comment related to > "Seqscan and Sort case" and also considering how to handle the "Index scan case". Thank you, Unfortunately, this patch has some conflicts now, could you rebase it? Also what's is the status of your work on improving it based on the provided feedback? In the meantime I'm moving it to the next CF.
Commits
-
Fix progress reporting of CLUSTER / VACUUM FULL
- 6212276e4343 13.0 landed
- da47e43dc32e 12.0 landed
-
Fix thinko when ending progress report for a backend
- f4b91a50e9e6 9.6.16 landed
- 4950f09e7ae2 10.11 landed
- af28744288b1 11.6 landed
- 4c3e750ab4b5 12.0 landed
- ae060a52b288 13.0 landed
-
Report progress of REINDEX operations
- 03f9e5cba0ee 12.0 cited
-
Add progress reporting for CLUSTER and VACUUM FULL.
- 6f97457e0ddd 12.0 landed
-
Un-hide most cascaded-drop details in regression test results.
- 940311e4bb32 12.0 cited
-
Fix memory leak in printtup.c.
- f2004f19ed9c 12.0 cited
-
Remove unused macro
- fb5806533f9f 12.0 cited