pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat
Date: Sat, 28 May 2016 11:32:21 -0400
Message-ID: <29919.1464449541@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1+Seno9EEjExSobRsowM9DA-=VFL32G22SRZN520Y0sLg@mail.gmail.com>
References: <20160527225918.GA736387@alvherre.pgsql>
	<28955.1464392177@sss.pgh.pa.us>
	<CAA4eK1+Seno9EEjExSobRsowM9DA-=VFL32G22SRZN520Y0sLg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Amit Kapila <amit.kapila16@gmail.com> writes:
> On Sat, May 28, 2016 at 5:06 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It looks like the vacuumdb.c version of this code actually is tied
>> into an interrupt handler, but whoever copied it for parallel.c just
>> ripped out the CancelRequested checks, making the looping behavior
>> pretty useless.

> It seems to me that CancelRequested checks were introduced in vacuumdb.c as
> part of commit a1792320 and select_loop for parallel.c version exists from
> commit 9e257a18 which got committed earlier.

Huh, interesting.  I wonder how parallel.c's select_loop got to be like
that then?  The git history offers no clue: it is essentially the same as
HEAD as far back as the initial commit of parallel.c.  It certainly looks
like someone intended to introduce a cancel check and never did, or had
one and took it out without simplifying the rest of the logic.

Anyway, AFAICS the time limit on select() wait is completely useless in
the code as it stands; but we'll likely want to add a cancel check there,
so ripping it out wouldn't be a good plan.  I'll change the added comment.

			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 (33+ messages)  latest in thread

Message-ID: <29919.1464449541@sss.pgh.pa.us>
Permalink:  ../29919.1464449541@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29919.1464449541@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, amit.kapila16@gmail.com, alvherre@2ndquadrant.com
  Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat
  In-Reply-To: <29919.1464449541@sss.pgh.pa.us>
  References: <20160527225918.GA736387@alvherre.pgsql> <28955.1464392177@sss.pgh.pa.us> <CAA4eK1+Seno9EEjExSobRsowM9DA-=VFL32G22SRZN520Y0sLg@mail.gmail.com> <29919.1464449541@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