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 1lSiPP-000156-4x for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:41:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lSiOs-0007Bv-6t for pgsql-performance@arkaria.postgresql.org; Sat, 03 Apr 2021 15:41:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lSiOr-0007Bh-Ql for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:41:25 +0000 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lSiOk-0005Ts-9B for pgsql-performance@lists.postgresql.org; Sat, 03 Apr 2021 15:41:25 +0000 Received: by mail-il1-x12c.google.com with SMTP id o15so2724308ilf.11 for ; Sat, 03 Apr 2021 08:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KKOn05N0VillUjEr7MvBPSKzB4J53rl8o4PEs35QkXU=; b=gXo+kdGAZdFZp9+c6CsZCvv95rHCuqYa4y+fbpyBZpfXt/oWrc8VG2uKauv71HKtnn YVLe59RCq+6ic5zHQni4WmmC+spTfawUk+M6gyF2mM4OuetS4gEisExhqsN8092kPh0A vz4ZA2dz/iWJBsRxBr7GTWagm74Xj0ncGduNdkIfoaz1Q6G6afLwFV34epyfDMZ3hqNW AgOrHDkRIPHqQPwTsmcOngqsuBIKyQ12M9/NGSdwRsznMlo5PKbS7BS53jOFjUIz/Dze sN6mBwCNcBft/rsR3AVRuQOvFLTIGRyv8mRMXoZxGB7ZqDsqWjV5gp3OlVPChJtYie9+ Mfug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KKOn05N0VillUjEr7MvBPSKzB4J53rl8o4PEs35QkXU=; b=TpP4Eyj2eRahxz09AwjN6eQTBAxum64Bjm9olsTYddSJ/+aAk1yFksz8sD97yzpoe+ 45SzZfOa66/2s+xeeibz3ximxamPMtuVHUIn7TVhLKmsyt2cGV9wKmyeMVEvsx27aPS7 wi9bc3nPyuWjrNGO1ItqmhvAMrD1aulme2wAvPKeanrgD1wdSo6f3IM6kUjhcJfEJFRl 3GMkkHBZ3m3kNKdZl8uVmpm0GAGfpFp1RtkmBk4hEF/49hJah8zNb7J3ISky4nBBM1Mx +y4YzhGGqariK9P6O7j0wysXZCtV+XQEj1q3tlW+Khg+15gEgCtTjE2eVU3Vysbh43X8 CFyg== X-Gm-Message-State: AOAM531aLTKBqaLXltz6t6kzo8lNxE22JDl4RDlpU2hElj5K0DFwKbGc dJmbahVssyrL5FPpem4RntZ/fA== X-Google-Smtp-Source: ABdhPJzEh1zGh424L/qeBX3BST3HFteDBi9v0QljTWzmVQgSpO5xQUj1iCafzA+Olnflur73SY7tlA== X-Received: by 2002:a05:6e02:12c7:: with SMTP id i7mr1407101ilm.243.1617464476382; Sat, 03 Apr 2021 08:41:16 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id j6sm6749700ila.31.2021.04.03.08.41.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Apr 2021 08:41:16 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EC305800A3B; Sat, 3 Apr 2021 10:41:14 -0500 (CDT) Date: Sat, 3 Apr 2021 10:41:14 -0500 From: Justin Pryzby To: Tom Lane Cc: Bruce Momjian , aditya desai , Pgsql Performance Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. Message-ID: <20210403154114.GJ6592@telsasoft.com> 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.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Apr 03, 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. Because it's there to help DBAs catch errors in functions incorrectly marked as parallel safe. -- Justin