Re: Statistics Import and Export

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Statistics Import and Export
Дата
Msg-id ZileJQ2wl-Y63VWt@momjian.us
обсуждение исходный текст
Ответ на Re: Statistics Import and Export  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Ответы Re: Statistics Import and Export  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Список pgsql-hackers
On Tue, Apr 23, 2024 at 06:33:48PM +0200, Matthias van de Meent wrote:
> I've heard of use cases where dumping stats without data would help
> with production database planner debugging on a non-prod system.
> 
> Sure, some planner inputs would have to be taken into account too, but
> having an exact copy of production stats is at least a start and can
> help build models and alerts for what'll happen when the tables grow
> larger with the current stats.
> 
> As for other planner inputs: table size is relatively easy to shim
> with sparse files; cumulative statistics can be copied from a donor
> replica if needed, and btree indexes only really really need to
> contain their highest and lowest values (and need their height set
> correctly).

Is it possible to prevent stats from being updated by autovacuum and
other methods?

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Erik Wienhold
Дата:
Сообщение: Re: Q: Escapes in jsonpath Idents
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: Statistics Import and Export