Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQyMz-0006sm-SQ for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jun 2018 17:06:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fQyMy-0000Jr-Gc for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jun 2018 17:06:40 +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.89) (envelope-from ) id 1fQyMy-0000Jg-AV for pgsql-bugs@lists.postgresql.org; Thu, 07 Jun 2018 17:06:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fQyMv-0004uh-9w for pgsql-bugs@lists.postgresql.org; Thu, 07 Jun 2018 17:06:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w57H6XLC026470; Thu, 7 Jun 2018 13:06:33 -0400 From: Tom Lane To: Jud Gardner cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15232: Query execution changes based on using 'explain analyze' or not In-reply-to: References: <152838510590.26728.14913938912964455418@wrigleys.postgresql.org> <24022.1528387735@sss.pgh.pa.us> Comments: In-reply-to Jud Gardner message dated "Thu, 07 Jun 2018 09:59:52 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26468.1528391193.1@sss.pgh.pa.us> Date: Thu, 07 Jun 2018 13:06:33 -0400 Message-ID: <26469.1528391193@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jud Gardner writes: > When submitted through psql I don't see the issue. > I also don't see it when submitting via jdbc (42.2.2) directly. > I'm seeing this via jdbc through dbVisualizer, haven't seen this kind of > behavior before. Interesting. It could be that dbVisualizer is setting some parameter or transaction mode that prevents parallelism. SERIALIZABLE mode does so, for example, because the serializable-transaction logic hasn't been taught about parallelism yet. regards, tom lane