pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_dump: Allow pg_dump to dump the statistics for foreign tables
Date: Wed, 18 Jun 2025 05:57:25 +0000
Message-ID: <E1uRlnZ-002DQY-1m@gemulon.postgresql.org> (raw)

pg_dump: Allow pg_dump to dump the statistics for foreign tables.

Commit 1fd1bd87101 introduced support for dumping statistics with
pg_dump and pg_dumpall, covering tables, materialized views, and indexes.
However, it overlooked foreign tables, even though functions like
pg_restore_relation_stats() support them.

This commit fixes that oversight by allowing pg_dump and pg_dumpall
to include statistics for foreign tables.

Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Corey Huinker <corey.huinker@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://postgr.es/m/3772e4e4-ef39-4deb-bb76-aa8165f33fb6@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c2e2589ab969eb802493191c79de844bf7dc3a6e

Modified Files
--------------
doc/src/sgml/ref/pg_dump.sgml    | 7 ++++---
doc/src/sgml/ref/pg_dumpall.sgml | 3 ++-
src/bin/pg_dump/pg_dump.c        | 4 +++-
3 files changed, 9 insertions(+), 5 deletions(-)



Message-ID: <E1uRlnZ-002DQY-1m@gemulon.postgresql.org>
Permalink:  ../E1uRlnZ-002DQY-1m@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uRlnZ-002DQY-1m@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: pg_dump: Allow pg_dump to dump the statistics for foreign tables
  In-Reply-To: <E1uRlnZ-002DQY-1m@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox