pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Minor optimizations based on ParallelContext having nworkers_lau
Date: Fri, 04 Mar 2016 18:11:06 +0000
Message-ID: <E1abuBu-0004o5-Dm@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Minor optimizations based on ParallelContext having nworkers_launched.

Originally, we didn't have nworkers_launched, so code that used parallel
contexts had to be preprared for the possibility that not all of the
workers requested actually got launched.  But now we can count on knowing
the number of workers that were successfully launched, which can shave
off a few cycles and simplify some code slightly.

Amit Kapila, reviewed by Haribabu Kommi, per a suggestion from Peter
Geoghegan.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/df4685fb0cad1c75970b6e8d0aacca4d03545e04

Modified Files
--------------
src/backend/access/transam/parallel.c |  8 ++++----
src/backend/executor/execParallel.c   |  2 +-
src/backend/executor/nodeGather.c     | 18 +++++++-----------
3 files changed, 12 insertions(+), 16 deletions(-)


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


Message-ID: <E1abuBu-0004o5-Dm@gemulon.postgresql.org>
Permalink:  ../E1abuBu-0004o5-Dm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1abuBu-0004o5-Dm@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: rhaas@postgresql.org
  Subject: Re: pgsql: Minor optimizations based on ParallelContext having nworkers_lau
  In-Reply-To: <E1abuBu-0004o5-Dm@gemulon.postgresql.org>
  References: <E1abuBu-0004o5-Dm@gemulon.postgresql.org>

* 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