mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
This reverts the non-text (custom/directory/tar) output format support for pg_dumpall added by763aaa06f0and its feature-specific follow-ups, in line with Noah Misch's post-commit review which recommends reverting and finishing the work through the commitfest. Scope is deliberately minimal: only the feature itself is removed. Independent improvements that merely touched the same files, or that were committed alongside the feature but do not depend on its design, are preserved. Reverted (the feature):763aaa06f0Add non-text output formats to pg_dumpalld6d9b96b40Clean up nodes that are no longer of use in 007_pgdumpall.pl01c729e0c7Fix casting away const-ness in pg_restore.cc7572cd48dImprove writing map.dat preamble3c19983cc0pg_restore: add --no-globals option to skip globalsabff4492d0Fix options listing of pg_restore --no-globalsbb53b8d359Fix small memory leak in get_dbname_oid_list_from_mfile()a793677e57pg_restore: Remove dead code in restore_all_databases()a198c26dedpg_dumpall: simplify coding of dropDBs()ec80215c03pg_restore: Remove unnecessary strlen() calls in options parsing Preserved (independent of the feature):b2898baaf7the check_mut_excl_opts() helper in src/fe_utils/option_utils.c and its use in pg_dump7c8280eeb5pg_dump's conflicting-option refactor (and tests 002/005)be0d0b457cpg_dumpall's rejection of --clean together with --data-only (re-expressed directly, since pg_dumpall.c is otherwise returned to its pre-feature state)74b4438a70the dangling-grantor-OID GRANT fix (back-patched through 16)273d26b75e,d4cb9c3776independent pg_restore.sgml clarifications Because the feature restructured pg_dumpall.c and pg_restore.c (pg_restore's main() was split into restore_one_database() plus a dispatcher) and interleaved its option checks with the conflicting-option refactor in the same regions, the cosmetic check_mut_excl_opts() reflow of those two files' option blocks is inseparable from the feature and comes out with it; the behavior is unchanged. The reusable helper and pg_dump's use of it are unaffected. Discussion: https://postgr.es/m/20260607000218.96.noahmisch@microsoft.com