Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAUPI-0007e0-Ep for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jun 2016 03:43:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bAUPH-0005Bf-Dm for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Jun 2016 03:43:51 +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 1bAUPG-0005Aq-5H for pgsql-hackers@postgresql.org; Wed, 08 Jun 2016 03:43:50 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bAUPC-0006Gz-TX for pgsql-hackers@postgresql.org; Wed, 08 Jun 2016 03:43:48 +0000 Received: by mail-pa0-x229.google.com with SMTP id b5so23554912pas.3 for ; Tue, 07 Jun 2016 20:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=ZOGNpJ1PeTSAUpvmGLN/VoL0NXJRLI0BSFRgWGYxs2k=; b=YAuZpkPy+Iwbzc87J8d0inMaKoVd5YPglCNAwPALgdmVhgDwrFnYnhx5pA15yacCn8 mgsZcMG3xmilv1vB+eAR7tUOa79SfEEU6hOr1IoNRdru6Up+enUb9qkkelHin6prvfXi 2hfvE0iMWNbR4WBcSvESwr7PzomEbEK7yrOj0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=ZOGNpJ1PeTSAUpvmGLN/VoL0NXJRLI0BSFRgWGYxs2k=; b=M7HLP+LB2vGTcR37D/q0foYMoPZX8H/ZRFZMQ/GSLd7kO6Tis0kkiV91TiP2khGi1B m5tjxvIMkGoxPRDOhZQczqcq+0mLWjO7mPW9RKVvvcGuxMEzbLBIakMOpEUp2uhiILyO SButiwZaQMbtFRDafvlQ3iqkFcnQ88BBelyOvL8VzTUJzVkcqNcYblaqopCNsqJLfDdk wiQY5vWhnxgAILUhyuQvBr10fF/gxl5/4IGVWtTvseKyOemGvDf5ezZ0CiAr8eB6rce/ 3keVdyrkM93G2fCt+3dctWgY/R8mCJcf7/rNs19qDNe+3I0W9cB9Wj9/oabZiYZnaR2C s1rg== X-Gm-Message-State: ALyK8tLxtzEnsLdZQtcKcvxIgk3yiwhYHdS+DaRyYgvS9kk0Yjv21GYO91hiOVONO72X0A== X-Received: by 10.66.222.98 with SMTP id ql2mr3234548pac.137.1465357425551; Tue, 07 Jun 2016 20:43:45 -0700 (PDT) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id g86sm27458883pfd.67.2016.06.07.20.43.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 07 Jun 2016 20:43:44 -0700 (PDT) Date: Tue, 7 Jun 2016 23:43:42 -0400 From: Noah Misch To: =?iso-8859-1?Q?Cl=E9ment_Pr=E9vost?= Cc: Peter Eisentraut , Andres Freund , Alvaro Herrera , David Rowley , PostgreSQL-development Subject: Re: parallel.c is not marked as test covered Message-ID: <20160608034342.GA804701@tornado.leadboat.com> References: <20160509012055.GA433959@alvherre.pgsql> <20160509145023.tkdpyygfxu56ngzz@alap3.anarazel.de> <20160607052716.GA766951@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.7 (--) 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 Tue, Jun 07, 2016 at 10:24:33PM +0000, Clément Prévost wrote: > I also considered setting max_parallel_degree to 1 to make the test more > futur-proof but there is a rather long discussion on the setting name ( > https://www.postgresql.org/message-id/20160424035859.GB29404@momjian.us) so > I can't decide on my own if it's worth the explicit dependency. It wouldn't be a problem to update this test when renaming the setting, but I didn't see an impending need to use that setting. > > As of today, "make installcheck" passes with > > "default_transaction_isolation = > > serializable" in postgresql.conf. Let's preserve that property. You could > > wrap the parallel queries in "begin isolation level repeatable read;" > > ... "commit;", or you could SET default_transaction_isolation itself. > > > > I did add the transaction, but I don't get why this specific test should > use this specific transaction isolation level. We disable all parallelism at serializable isolation. Any other isolation level would have worked; repeatable read was an arbitrary choice. I added a comment to that effect. > -test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index update namespace prepared_xacts delete > +test: select_into select_distinct select_distinct_on select_implicit select_having subselect union case join aggregates transactions random portals arrays btree_index hash_index update namespace prepared_xacts delete select_parallel I moved the test to a different group, in light of this parallel_schedule header comment: # By convention, we put no more than twenty tests in any one parallel group; # this limits the number of connections needed to run the tests. > + exception > + -- raise custom exception, the original message contains > + -- a worker PID that must be hidden in the test output > + when others then raise exception 'Error in worker'; I changed this to keep the main message while overwriting the CONTEXT; a bug in this area could very well produce some other error rather than no error. Committed that way. Thanks, nm -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers