pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Accounting for between table correlation
Date: Fri, 15 Jan 2021 17:10:01 +0100
Message-ID: <f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net> (raw)
In-Reply-To: <CA+ONtZ4+HhQmouVGi5+E_G5LgZoYnBqhvXJQBM=HxWm+zcSenw@mail.gmail.com>
References: <CADDNc-B=spVE0FjJEOUEsGo+ChvvkPjyLZk+MV-YHz80Fo4BCw@mail.gmail.com>
	<b804bb4e-8f7b-d391-8827-a82b137321e8@gmail.com>
	<CA+ONtZ4+HhQmouVGi5+E_G5LgZoYnBqhvXJQBM=HxWm+zcSenw@mail.gmail.com>

Atul Kumar schrieb am 15.01.2021 um 16:29:
> As per Ron, you are not supposed to ask your questions here.
>
> As According to him, we should keep on doing research on internet
> rather than asking for support directly even you have done enough
> research and until unless “Ron” won’t be satisfied you have to do
> keep on researching.

Ron's question was perfectly valid.

Missing and wrong statistics are one reason for the planner to choose a bad execution plan.

Maybe there are many "idle in transaction" sessions that prevent autovacuum from properly
analyzing those tables. Or maybe for some unknown reason autovacuum was turned off.
Or maybe they receive a lot of bulk loads which would require a manual
analyze.

So the question "are they analyzed on a regular basis" is a valid point and nowhere
did Ron say that the OP didn't do enough research. Ron was merely trying to
rule out one of the more obvious reasons.

Thomas





view thread (18+ messages)  latest in thread

Message-ID: <f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net>
Permalink:  ../f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net/
Also on:    postgresql.org/message-id/f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: Accounting for between table correlation
  In-Reply-To: <f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net>
  References: <CADDNc-B=spVE0FjJEOUEsGo+ChvvkPjyLZk+MV-YHz80Fo4BCw@mail.gmail.com> <b804bb4e-8f7b-d391-8827-a82b137321e8@gmail.com> <CA+ONtZ4+HhQmouVGi5+E_G5LgZoYnBqhvXJQBM=HxWm+zcSenw@mail.gmail.com> <f21e04a3-33e7-caa4-6044-5931bf231b79@gmx.net>

* 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