pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: aditya desai <admad123@gmail.com>
Cc: Pgsql Performance <pgsql-performance@lists.postgresql.org>
Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration.
Date: Sat, 3 Apr 2021 10:41:14 -0500
Message-ID: <20210403154114.GJ6592@telsasoft.com> (raw)
In-Reply-To: <3972636.1617464359@sss.pgh.pa.us>
References: <CAN0SRDFV=Fv0zXHCGbh7gh=MTfw05Xd1x7gjJrZs5qn-TEphOw@mail.gmail.com>
	<CAFj8pRDycZjBLBaEkUcY4B01PS=ojoaBgQnzJaqBROTn8KM7Bg@mail.gmail.com>
	<20210403141651.GI6592@telsasoft.com>
	<CAN0SRDF6ZzxV-+OdgP6B+Zg0TmhrYFSOd3kK8GC5mkfo1icEGQ@mail.gmail.com>
	<20210403151201.GD29125@momjian.us>
	<3972636.1617464359@sss.pgh.pa.us>

On Sat, Apr 03, 2021 at 11:39:19AM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> 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





view thread (25+ messages)  latest in thread

Message-ID: <20210403154114.GJ6592@telsasoft.com>
Permalink:  ../20210403154114.GJ6592@telsasoft.com/
Also on:    postgresql.org/message-id/20210403154114.GJ6592@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, tgl@sss.pgh.pa.us, bruce@momjian.us, admad123@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration.
  In-Reply-To: <20210403154114.GJ6592@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox