From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com> |
Cc: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
Subject: | Re: [HACKERS] Parallel tuplesort (for parallel B-Tree index creation) |
Date: | 2017-11-14 18:01:05 |
Message-ID: | CAH2-Wzk3ANnEcCADvjVaxHrhCdcPVEUtTzpnMiwkGNNyZsYfUw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 14, 2017 at 1:41 AM, Rushabh Lathia
<rushabh(dot)lathia(at)gmail(dot)com> wrote:
> Thanks Peter and Thomas for the review comments.
No problem. More feedback:
* I don't really see much need for this:
+ elog(LOG, "Worker for create index %d", parallel_workers);
You can just use trace_sort, and observe the actual behavior of the
sort that way.
* As I said before, you should remove the header comments within nbtsort.c.
* This should just say "write routines":
+ * This is why write/recycle routines don't need to know about offsets at
+ * all.
* You didn't point out the randomAccess restriction in tuplesort.h.
* I can't remember why I added the Valgrind suppression at this point.
I'd remove it until the reason becomes clear, which may never happen.
The regression tests should still pass without Valgrind warnings.
* You can add back comments removed from above LogicalTapeTell(). I
made these changes because it looked like we should close out the
possibility of doing a tell during the write phase, as unified tapes
actually would make that hard (no one does what it describes anyway).
But now, unified tapes are a distinct case to frozen tapes in a way
that they weren't before, so there is no need to make it impossible.
I also think you should replace "Assert(lt->frozen)" with
"Assert(lt->offsetBlockNumber == 0L)", for the same reason.
--
Peter Geoghegan
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2017-11-14 18:09:26 | Re: [HACKERS] Transaction control in procedures |
Previous Message | Fujii Masao | 2017-11-14 17:59:05 | Re: [HACKERS] Assertion failure when the non-exclusive pg_stop_backup aborted. |