Re: change sample size for statistics - Mailing list pgsql-performance

From Nathan Boley
Subject Re: change sample size for statistics
Date
Msg-id BANLkTikkkzpxOuvkgiuMx0ywaHgq1u2jng@mail.gmail.com
Whole thread Raw
In response to change sample size for statistics  (Willy-Bas Loos <willybas@gmail.com>)
List pgsql-performance
[ Sorry, forgot to cc list ]

>> It is said to be 10%. i would like to raise that, because we are getting bas
>> estimations for n_distinct.
>
> More to the point, the estimator we use is going to be biased for many
> ( probably most ) distributions no matter how large your sample size
> is.
>
> If you need to fix ndistinct, a better approach may be to do it manually.
>
> Best,
> Nathan
>

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: change sample size for statistics
Next
From: "Reuven M. Lerner"
Date:
Subject: Re: Triggering autovacuum