pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Noah Misch <noah@leadboat.com>
Cc: Clément Prévost <prevostclement@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: parallel.c is not marked as test covered
Date: Sun, 19 Jun 2016 22:23:30 -0400
Message-ID: <31689.1466389410@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmobeA=8StbgxgRAfyYG-A-FUmZQQ4nc953cd7ArDRpyGAg@mail.gmail.com>
References: <CAKJS1f-3evRXNfTh7GLFGfCkXhxOs0G5PJ_JQ7EbJYnsgK61yw@mail.gmail.com>
	<20160607052716.GA766951@tornado.leadboat.com>
	<b580fe7b-237f-f396-8abd-317475328641@2ndquadrant.com>
	<CABaKae-eCW4d7SmgxoA8oBan5hhRnb0_qmHtQ580ANfPPNo8tw@mail.gmail.com>
	<20160608034342.GA804701@tornado.leadboat.com>
	<58cd047c-deba-0863-b279-56b931237176@2ndquadrant.com>
	<CA+Tgmoac+sysZi0QKtexCKwQ99fjiwfrbQJ4aom-i1C0s6SeAg@mail.gmail.com>
	<CA+Tgmob78-4NEYsqA7mapdqLgkAyVuOAKmtgQH9qiMhand-acg@mail.gmail.com>
	<bfd204ab-ab1a-792a-b345-0274a09a4b5f@2ndquadrant.com>
	<CA+TgmoYBiBJFcPUFS+R8XN7_DCf5jhQvyopsS6C1y-6EYjBiLw@mail.gmail.com>
	<CA+TgmoaJGJ6DPjWPwwVzbNYW6Aj5f33gYuwU3eg13g=f5wqGXw@mail.gmail.com>
	<b99734a7-4e40-af77-054a-b6c1409d9ef1@2ndquadrant.com>
	<24863.1466311214@sss.pgh.pa.us>
	<CAA4eK1LEe+jJUvQa3p3LEt5eckO4Fr=YyxynaUYm-eB35T0cxQ@mail.gmail.com>
	<13382.1466350602@sss.pgh.pa.us>
	<CA+TgmoaDFcbhNLvS+h+2=oEiAwza8AoKrtC76hn1DEk7Pz_BuQ@mail.gmail.com>
	<c85fc422-6273-2e4f-5690-a588fe0fc6c6@2ndquad! rant.com>
	<CA+TgmobeA=8StbgxgRAfyYG-A-FUmZQQ4nc953cd7ArDRpyGAg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> On Sun, Jun 19, 2016 at 5:22 PM, Peter Eisentraut
> <peter.eisentraut@2ndquadrant.com> wrote:
>> Well, the purpose of the test is to check the error passing between worker
>> and leader.  If we just silently revert to not doing that, then we can't
>> really be sure that we're testing the right thing.

> I've been thinking about renaming the "single_copy" flag for Gather
> nodes to something like "pipeline" or some other term that might hope
> to convey that the leader won't participate unless no workers can be
> launched at all, and then adding an option to force that to be used
> always.  That would allow better testing here,

How so?  You still have the fact that functions will run in the leader
when no workers are available, and the gold-plated certainty that that
case will arise routinely in the buildfarm.  Perhaps this would move
the probability of running in a worker from 90% to 95%, but I don't
think that'll make much difference from a testing standpoint.  Having
said that ...

> although I fear we
> might be getting to a level of tinkering with parallel query that
> starts to look more like feature development.

Personally, I'm +1 for such tinkering if it makes the feature either more
controllable or more understandable.  After reading the comments at the
head of nodeGather.c, though, I don't think that single_copy is either
understandable or useful, and merely renaming it won't help.  Apparently,
it runs code in the worker, except when it doesn't, and even when it does,
it's absolutely guaranteed to be a performance loss because the leader is
doing nothing.  What in the world is the point?

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (71+ messages)  latest in thread

Message-ID: <31689.1466389410@sss.pgh.pa.us>
Permalink:  ../31689.1466389410@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31689.1466389410@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, peter.eisentraut@2ndquadrant.com, amit.kapila16@gmail.com, noah@leadboat.com, prevostclement@gmail.com
  Subject: Re: parallel.c is not marked as test covered
  In-Reply-To: <31689.1466389410@sss.pgh.pa.us>
  References: <CAKJS1f-3evRXNfTh7GLFGfCkXhxOs0G5PJ_JQ7EbJYnsgK61yw@mail.gmail.com> <b580fe7b-237f-f396-8abd-317475328641@2ndquadrant.com> <CABaKae-eCW4d7SmgxoA8oBan5hhRnb0_qmHtQ580ANfPPNo8tw@mail.gmail.com> <20160608034342.GA804701@tornado.leadboat.com> <58cd047c-deba-0863-b279-56b931237176@2ndquadrant.com> <CA+Tgmoac+sysZi0QKtexCKwQ99fjiwfrbQJ4aom-i1C0s6SeAg@mail.gmail.com> <CA+Tgmob78-4NEYsqA7mapdqLgkAyVuOAKmtgQH9qiMhand-acg@mail.gmail.com> <bfd204ab-ab1a-792a-b345-0274a09a4b5f@2ndquadrant.com> <CA+TgmoYBiBJFcPUFS+R8XN7_DCf5jhQvyopsS6C1y-6EYjBiLw@mail.gmail.com> <CA+TgmoaJGJ6DPjWPwwVzbNYW6Aj5f33gYuwU3eg13g=f5wqGXw@mail.gmail.com> <b99734a7-4e40-af77-054a-b6c1409d9ef1@2ndquadrant.com> <24863.1466311214@sss.pgh.pa.us> <CAA4eK1LEe+jJUvQa3p3LEt5eckO4Fr=YyxynaUYm-eB35T0cxQ@mail.gmail.com> <13382.1466350602@sss.pgh.pa.us> <CA+TgmoaDFcbhNLvS+h+2=oEiAwza8AoKrtC76hn1DEk7Pz_BuQ@mail.gmail.com> <CA+TgmobeA=8StbgxgRAfyYG-A-FUmZQQ4nc953cd7ArDRpyGAg@mail.gmail.com> <31689.1466389410@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox