Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6QkL-0006gW-4m for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 23:00:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6QkK-0003Wj-NM for pgsql-hackers@arkaria.postgresql.org; Fri, 27 May 2016 23:00:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6Qiz-0001yY-1W for pgsql-hackers@postgresql.org; Fri, 27 May 2016 22:59:25 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b6Qiv-000323-Qe for pgsql-hackers@postgresql.org; Fri, 27 May 2016 22:59:23 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.155.90.98]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 94E8C401B89; Fri, 27 May 2016 15:59:20 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C8279491; Fri, 27 May 2016 18:59:18 -0400 (CLT) Date: Fri, 27 May 2016 18:59:18 -0400 From: Alvaro Herrera To: Tom Lane Cc: pgsql-hackers@postgresql.org Subject: Re: Parallel pg_dump's error reporting doesn't work worth squat Message-ID: <20160527225918.GA736387@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <25239.1464386067@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Regarding this: > *************** select_loop(int maxFd, fd_set *workerset > *** 1092,1104 **** > --- 1150,1160 ---- > fd_set saveSet = *workerset; > > #ifdef WIN32 > for (;;) > { > /* > * sleep a quarter of a second before checking if we should terminate. > + * XXX this certainly looks useless, why not just wait indefinitely? > */ > struct timeval tv = {0, 250000}; > There's another select_loop() in vacuumdb.c suggesting that the timeout is used to check for cancel requests; as I understood while working on the vacuumdb changes, select() is not interrupted in that case. I suppose that means it's necessary here also. But on the other hand it's quite possible that the original developer just copied what was in pg_dump and that it's not actually needed; if that's the case, perhaps it's better to rip it out from both places. https://www.postgresql.org/message-id/20150122174601.GB1663@alvh.no-ip.org -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers