Re: Allow pg_dump --statistics-only to dump foreign table statistics? - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Allow pg_dump --statistics-only to dump foreign table statistics?
Date
Msg-id ec4d15b6-64ff-4114-a5d2-9263263e4198@oss.nttdata.com
Whole thread Raw
In response to Re: Allow pg_dump --statistics-only to dump foreign table statistics?  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers

On 2025/06/14 7:31, Nathan Bossart wrote:
> On Fri, Jun 13, 2025 at 04:19:26PM +0900, Fujii Masao wrote:
>> I noticed that pg_restore_relation|attribute_stats() can restore statistics
>> for foreign tables, but pg_dump --statistics-only doesn't include them.
>> Is there a reason why pg_dump skips statistics for foreign tables?
>> Are there any risks or concerns around including them?
> 
> Isn't this applicable to --with-statistics, too?

Yes, it applies to --with-statistics as well.

Regards,

-- 
Fujii Masao
NTT DATA Japan Corporation




pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BackendKeyData is mandatory?
Next
From: Fujii Masao
Date:
Subject: Re: Allow pg_dump --statistics-only to dump foreign table statistics?