pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mats Olsen <mats@duneanalytics.com>
To: Victor Yegorov <vyegorov@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query Performance / Planner estimate off
Date: Tue, 20 Oct 2020 19:40:40 +0200
Message-ID: <1a470915-3ddd-ddc8-c1dd-45cf648fe392@duneanalytics.com> (raw)
In-Reply-To: <CAGnEbohHPxK4OzsgxV_KPVm+nTzN00DcrXXou0c96ENx7rau8Q@mail.gmail.com>
References: <CAARtqpGxzna+jj3LYNTacHxbC03-KdBs7XeQUaqwEkUJ+5QMbw@mail.gmail.com>
	<CAGnEbohHPxK4OzsgxV_KPVm+nTzN00DcrXXou0c96ENx7rau8Q@mail.gmail.com>


On 10/20/20 3:22 PM, Victor Yegorov wrote:
> вт, 20 окт. 2020 г. в 11:38, Mats Julian Olsen <mats@duneanalytics.com 
> <mailto:mats@duneanalytics.com>>:
>
>     I'm looking for some help to manage queries against two large tables.
>
>
> Also, can you enable `track_io_timing` (no restart required) and 
> provide output of `EXPLAIN (analyze, buffers, settings)` for all 3 
> variants, please?
> (I assume you're on 12+.)

Thanks! Yes on 12.2. Here's the output:

vanilla: https://explain.depesz.com/s/Ktrd

set enable_nestloop=off: https://explain.depesz.com/s/mvSD

set enable_nestloop=off; set enable_seqscan=off: 
https://explain.depesz.com/s/XIDo

Are these helpful?

>
> -- 
> Victor Yegorov

view thread (26+ messages)  latest in thread

Message-ID: <1a470915-3ddd-ddc8-c1dd-45cf648fe392@duneanalytics.com>
Permalink:  ../1a470915-3ddd-ddc8-c1dd-45cf648fe392@duneanalytics.com/
Also on:    postgresql.org/message-id/1a470915-3ddd-ddc8-c1dd-45cf648fe392@duneanalytics.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-performance@postgresql.org
  Cc: mats@duneanalytics.com, vyegorov@gmail.com
  Subject: Re: Query Performance / Planner estimate off
  In-Reply-To: <1a470915-3ddd-ddc8-c1dd-45cf648fe392@duneanalytics.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