Re: Can we use Statistics Import and Export feature to perforamance testing? - Mailing list pgsql-hackers

From Yugo Nagata
Subject Re: Can we use Statistics Import and Export feature to perforamance testing?
Date
Msg-id 20251023192753.165621c1ae24b04b718cebf4@sraoss.co.jp
Whole thread Raw
In response to RE: Can we use Statistics Import and Export feature to perforamance testing?  ("Ryohei Takahashi (Fujitsu)" <r.takahashi_2@fujitsu.com>)
List 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>

Attachment

pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Question about InvalidatePossiblyObsoleteSlot()
Next
From: shveta malik
Date:
Subject: Re: POC: enable logical decoding when wal_level = 'replica' without a server restart