Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSiN0-00010R-03 for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:39:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSiMy-0004qC-U1 for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:39:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSiMy-0004q5-NK for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:39:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSiMs-0000dF-5P for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:39:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 133FdJO23972637; Sat, 3 Apr 2021 11:39:19 -0400 From: Tom Lane To: Bruce Momjian cc: aditya desai , Justin Pryzby , Pgsql Performance Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. In-reply-to: <20210403151201.GD29125@momjian.us> References: <20210403141651.GI6592@telsasoft.com> <20210403151201.GD29125@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Sat, 03 Apr 2021 11:12:01 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3972635.1617464359.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 03 Apr 2021 11:39:19 -0400 Message-ID: <3972636.1617464359@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bruce Momjian writes: > On Sat, Apr 3, 2021 at 08:38:18PM +0530, aditya desai wrote: >> Yes, force_parallel_mode is on. Should we set it off? > Yes. I bet someone set it without reading our docs: > https://www.postgresql.org/docs/13/runtime-config-query.html#RUNTIME-CO= NFIG-QUERY-OTHER > --> Allows the use of parallel queries for testing purposes even in case= s > --> where no performance benefit is expected. > We might need to clarify this sentence to be clearer it is _only_ for > testing. I wonder why it is listed under planner options at all, and not under developer options. regards, tom lane