Re: Can we use Statistics Import and Export feature to perforamance testing?

Поиск
Список
Период
Сортировка
От Yugo Nagata
Тема Re: Can we use Statistics Import and Export feature to perforamance testing?
Дата
Msg-id 20251023192753.165621c1ae24b04b718cebf4@sraoss.co.jp
обсуждение исходный текст
Ответ на RE: Can we use Statistics Import and Export feature to perforamance testing?  ("Ryohei Takahashi (Fujitsu)" <r.takahashi_2@fujitsu.com>)
Ответы RE: Can we use Statistics Import and Export feature to perforamance testing?
Список pgsql-hackers
Hi,

On Tue, 8 Apr 2025 12:14:08 +0000
"Ryohei Takahashi (Fujitsu)" <r.takahashi_2@fujitsu.com> wrote:

> Thank you for your reply.
> I understand that the access plans are not guaranteed to be the same.
> 
> Can we add these notes to the pg_dump page in the PostgreSQL Documentation
> in order to prevent users from asking the same question?

I agree that it would be helpful to add this description, since the wording
“statistics manipulation functions” might give the impression that they can
influence generated plans.

I’ve attached a patch that adds a new paragraph to the warning section of the
documentation on statistics manipulation functions:

      Manually restored statistics do not guarantee that the same query plans
      will be generated as in the source environment, since factors such as
      relation sizes, index OIDs, and configuration parameters may affect
      planner behavior.

What do you think?

Regards,
Yugo Nagata

-- 
Yugo Nagata <nagata@sraoss.co.jp>

Вложения

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