pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marco Colli <collimarco91@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Statistics on array values
Date: Sun, 02 Feb 2020 13:32:02 -0500
Message-ID: <21162.1580668322@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFvCgN5G+V1TWwmm82SPxnxawmsKOtW+sTjxQ5P7oJPMXi4akQ@mail.gmail.com>
References: <CAFvCgN4d9G6=u-_jJPBZhTSdf1Uqo+-txwWdAp_hCDKXbBQOHw@mail.gmail.com>
	<2661.1580663465@sss.pgh.pa.us>
	<CAFvCgN5G+V1TWwmm82SPxnxawmsKOtW+sTjxQ5P7oJPMXi4akQ@mail.gmail.com>

Marco Colli <collimarco91@gmail.com> writes:
> Unfortunately I don't get actual improvements. I use PG 11 and I run the
> following commands:
> ALTER TABLE subscriptions ALTER tags SET STATISTICS 1000;
> ANALYZE subscriptions;
> However the bias remains pretty much the same (slightly worse after). Any
> idea?

So what have you got in the pg_stats fields I asked about?
How big is this table anyway (how many rows, how many different tag
values)?

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <21162.1580668322@sss.pgh.pa.us>
Permalink:  ../21162.1580668322@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21162.1580668322@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, collimarco91@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: Statistics on array values
  In-Reply-To: <21162.1580668322@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