pg_dump: Add --sequence-data.

Nathan Bossart <nathan@postgresql.org>

Commit: 9c49f0e8cd7d59e240f5da88decf2d62d8a4ad0d
Author: Nathan Bossart <nathan@postgresql.org>
Date: 2025-03-25T21:02:35Z
Releases: 18.0
pg_dump: Add --sequence-data.

This new option instructs pg_dump to dump sequence data when the
--no-data, --schema-only, or --statistics-only option is specified.
This was originally considered for commit a7e5457db8, but it was
left out at that time because there was no known use-case.  A
follow-up commit will use this to optimize pg_upgrade's file
transfer step.

Reviewed-by: Robert Haas <robertmhaas@gmail.com>
Discussion: https://postgr.es/m/Zyvop-LxLXBLrZil%40nathan

Files

Documentation touched

Discussion