pgsql: pg_dump: Allow pg_dump to dump the statistics for foreign tables - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: pg_dump: Allow pg_dump to dump the statistics for foreign tables
Date
Msg-id E1uRlnZ-002DQY-1m@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: pgsql: Fix allocation check to test the right variable
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc config.sgml: use "-" and not "_" for varlistentry "id"s