Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDHu0-0002Si-7v for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 20:59:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDHtz-0006g8-RD for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jun 2016 20:59:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDHty-0006fP-KR for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 20:59:06 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bDHtv-0003pR-4F for pgsql-hackers@postgresql.org; Wed, 15 Jun 2016 20:59:06 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5127D20CBD; Wed, 15 Jun 2016 16:59:01 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Wed, 15 Jun 2016 16:59:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=kf2PA62Y51n97Lf 26pFFegDnNQg=; b=qmrZ4MEy8KKruF59tjLSgHr+NRjAP8RjdRd/OZfd1KBjp0U aRdkyCpuf2uajYx7nB2FHKQn/WVdKkULMVOMUcxOYZ8V9l6thdC0oxU80LVg9bYs ZdXZk4QpmbWepOw+QyL2lbVJZWIU5FlISRblot1cLMBGq7GRQsA/U7hpJU4o= X-Sasl-enc: Z4w5FJCah0Rb7KWQp2KMebq4sl/P8Q4eykQAWzCjsqhK 1466024340 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id B2DC3F29F7; Wed, 15 Jun 2016 16:59:00 -0400 (EDT) Subject: Re: parallel.c is not marked as test covered To: Robert Haas References: <20160509012055.GA433959@alvherre.pgsql> <20160509145023.tkdpyygfxu56ngzz@alap3.anarazel.de> <20160607052716.GA766951@tornado.leadboat.com> <20160608034342.GA804701@tornado.leadboat.com> <58cd047c-deba-0863-b279-56b931237176@2ndquadrant.com> Cc: Noah Misch , =?UTF-8?B?Q2zDqW1lbnQgUHLDqXZvc3Q=?= , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 15 Jun 2016 16:59:30 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 6/14/16 12:37 PM, Robert Haas wrote: > ERROR: can't generate random numbers because you haven't specified a seed > > ...to which the user will reply, "oh yes I did; in fact I ran SELECT > magic_setseed(42) just before I ran the offending query!". They'll > then contact an expert (hopefully) who will very possibly spend a lot > of time troubleshooting the wrong thing. If the message says: > > ERROR: can't generate random numbers because you haven't specified a seed > CONTEXT: parallel worker, PID 62413 > > ...then the expert has a very good chance of guessing what has gone > wrong right away. My updated opinion is to keep the context but remove the PID. I can see that as this feature is being introduced, we will want to know that something is happening inside a parallel worker. Maybe in the future we'll have it all figured out and won't need the context anymore. But the PID is not useful by the time you see the message. The server log should contain a trace of the PIDs if you need to do deep digging. -- Peter Eisentraut 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