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 1lSiQT-00017j-2n for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:43:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSiQS-00011G-0V for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:43:04 +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 1lSiQR-000119-Q2 for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:43:03 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSiQP-0000pm-Ig for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:43:02 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1lSiQO-000421-0J; Sat, 03 Apr 2021 11:43:00 -0400 Date: Sat, 3 Apr 2021 11:42:59 -0400 From: Bruce Momjian To: Tom Lane Cc: aditya desai , Justin Pryzby , Pgsql Performance Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. Message-ID: <20210403154259.GF29125@momjian.us> References: <20210403141651.GI6592@telsasoft.com> <20210403151201.GD29125@momjian.us> <3972636.1617464359@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3972636.1617464359@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Apr 3, 2021 at 11:39:19AM -0400, Tom Lane wrote: > 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-CONFIG-QUERY-OTHER > > > --> Allows the use of parallel queries for testing purposes even in cases > > --> 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. I was kind of surprised by that myself since I was working on a blog entry about from_collapse_limit and join_collapse_limit. I think moving it makes sense. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.