pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: avinash varma <avinashvarma443@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Planning time is high in Postgres 11.5 Compared with Postgres 10.11
Date: Tue, 17 Dec 2019 11:31:34 -0500
Message-ID: <26233.1576600294@sss.pgh.pa.us> (raw)
In-Reply-To: <20191217120751.34fmwkshfanjqws2@development>
References: <ac25d46b-07a0-1e54-0386-2cfed6941119@iki.fi>
	<CADaHE9F1UKPwPeNvrkw_a-a7mkse_U3nVxRwwRfLekzaLj1ESw@mail.gmail.com>
	<24176.1576509007@sss.pgh.pa.us>
	<CADaHE9GP8knYanAZS5-Z_KqsMHrZ+_4v5wvvBLc7NJSSzqBFWw@mail.gmail.com>
	<12053.1576513014@sss.pgh.pa.us>
	<CADaHE9GgZa7AeWX=6vaV_m-4GCHiVdoVD68VUHk5uXS6LxVXdg@mail.gmail.com>
	<CAFj8pRCZLZ-vVrQRjYUd63vO9y_DTeWLLxp6pRzQ+o1RMXX70w@mail.gmail.com>
	<CADaHE9EZabirJ6yqTCB7j7ZPJ-waXWSidX7qsO+BCCD+aDbCCQ@mail.gmail.com>
	<CAFj8pRBA12DHHNb=S5rK6YW5kSGhpSxQp6xh0AKpY036J36DCg@mail.gmail.com>
	<CADaHE9Hw=rXF-bciEFKxzpwdAZUFnT1sofw-kPAUn6WXUF1LUA@mail.gmail.com>
	<20191217120751.34fmwkshfanjqws2@development>

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> You've been asked (at least) twice to check size of statistics stored in
> pg_stats. It's really hard to help you when you don't provide important
> information like this.

Apparently we need to be more explicit.  What we want to see is

select most_common_vals from pg_stats
where tablename = 'child' and attname = 'id';

select most_common_vals from pg_stats
where tablename = 'core' and attname = 'groupid';

from both databases.  (Adjust as necessary if those weren't the
real table and column names.)  We probably don't need the specific
array elements, but we do want to know how big those arrays are.

			regards, tom lane





view thread (13+ messages)

Message-ID: <26233.1576600294@sss.pgh.pa.us>
Permalink:  ../26233.1576600294@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26233.1576600294@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tomas.vondra@2ndquadrant.com, avinashvarma443@gmail.com, pavel.stehule@gmail.com, hlinnaka@iki.fi
  Subject: Re: Planning time is high in Postgres 11.5 Compared with Postgres 10.11
  In-Reply-To: <26233.1576600294@sss.pgh.pa.us>
  References: <ac25d46b-07a0-1e54-0386-2cfed6941119@iki.fi> <CADaHE9F1UKPwPeNvrkw_a-a7mkse_U3nVxRwwRfLekzaLj1ESw@mail.gmail.com> <24176.1576509007@sss.pgh.pa.us> <CADaHE9GP8knYanAZS5-Z_KqsMHrZ+_4v5wvvBLc7NJSSzqBFWw@mail.gmail.com> <12053.1576513014@sss.pgh.pa.us> <CADaHE9GgZa7AeWX=6vaV_m-4GCHiVdoVD68VUHk5uXS6LxVXdg@mail.gmail.com> <CAFj8pRCZLZ-vVrQRjYUd63vO9y_DTeWLLxp6pRzQ+o1RMXX70w@mail.gmail.com> <CADaHE9EZabirJ6yqTCB7j7ZPJ-waXWSidX7qsO+BCCD+aDbCCQ@mail.gmail.com> <CAFj8pRBA12DHHNb=S5rK6YW5kSGhpSxQp6xh0AKpY036J36DCg@mail.gmail.com> <CADaHE9Hw=rXF-bciEFKxzpwdAZUFnT1sofw-kPAUn6WXUF1LUA@mail.gmail.com> <20191217120751.34fmwkshfanjqws2@development> <26233.1576600294@sss.pgh.pa.us>

* 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