Re: Parallel Seq Scan - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: Parallel Seq Scan
Date
Msg-id 1436250789.4369.160.camel@jeff-desktop
Whole thread Raw
In response to Re: Parallel Seq Scan  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
On Tue, 2015-07-07 at 09:27 +0530, Amit Kapila wrote:

> I am not sure how many blocks difference could be considered okay for
> deviation?

In my testing (a long time ago) deviations of tens of blocks didn't show
a problem.

However, an assumption of the sync scan work was that the CPU is
processing faster than the IO system; whereas the parallel scan patch
assumes that the IO system is faster than a single core. So perhaps the
features are incompatible after all. Only testing will say for sure.

Then again, syncscans are designed in such a way that they are unlikely
to hurt in any situation. Even if the scans diverge (or never converge
in the first place), it shouldn't be worse than starting at block zero
every time.

I'd prefer to leave syncscans intact for parallel scans unless you find
a reasonable situation where they perform worse. This shouldn't add any
complexity to the patch (if it does, let me know).

Regards,Jeff Davis






pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: multivariate statistics / patch v7
Next
From: Pavel Stehule
Date:
Subject: Re: raw output from copy