From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> |
Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, corey(dot)huinker(at)gmail(dot)com, pgsql(at)j-davis(dot)com |
Subject: | Re: Allow pg_dump --statistics-only to dump foreign table statistics? |
Date: | 2025-06-13 22:31:53 |
Message-ID: | aEym2Q32Pb_Mdy90@nathan |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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?
> Sorry if this has already been discussed. I tried searching but couldn't
> find the discussion. If there is one, I'd appreciate it if you could point
> me to it.
I skimmed through the main thread for the feature [0] (which seems to be so
long that it sometimes doesn't load completely), and I didn't see anything
directly related to the topic. There was some discussion about importing
foreign relation stats with the new functions instead of remote table
samples, but that's a different thing.
[0] https://postgr.es/m/CADkLM%3DcB0rF3p_FuWRTMSV0983ihTRpsH%2BOCpNyiqE7Wk0vUWA%40mail.gmail.com
--
nathan
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2025-06-13 23:15:25 | Re: [PING] [PATCH v2] parallel pg_restore: avoid disk seeks when jumping short distance forward |
Previous Message | Nathan Bossart | 2025-06-13 22:04:47 | Re: [PING] [PATCH v2] parallel pg_restore: avoid disk seeks when jumping short distance forward |