postgresql/src
Andrew Dunstan 763aaa06f0 Add non-text output formats to pg_dumpall
pg_dumpall can now produce output in custom, directory, or tar formats
in addition to plain text SQL scripts. When using non-text formats,
pg_dumpall creates a directory containing:
- toc.glo: global data (roles and tablespaces) in custom format
- map.dat: mapping between database OIDs and names
- databases/: subdirectory with per-database archives named by OID

pg_restore is extended to handle these pg_dumpall archives, restoring
globals and then each database. The --globals-only option can be used
to restore only the global objects.

This enables parallel restore of pg_dumpall output and selective
restoration of individual databases from a cluster-wide backup.

Author: Mahendra Singh Thalor <mahi6run@gmail.com>
Co-Author: Andrew Dunstan <andrew@dunslane.net>
Reviewed-By: Tushar Ahuja <tushar.ahuja@enterprisedb.com>
Reviewed-By: Jian He <jian.universality@gmail.com>
Reviewed-By: Vaibhav Dalvi <vaibhav.dalvi@enterprisedb.com>
Reviewed-By: Srinath Reddy <srinath2133@gmail.com>

Discussion: https://postgr.es/m/cb103623-8ee6-4ba5-a2c9-f32e3a4933fa@dunslane.net
2026-02-26 08:29:56 -05:00
..
backend Fix ProcWakeup() resetting wrong waitStart field. 2026-02-26 08:46:12 +09:00
bin Add non-text output formats to pg_dumpall 2026-02-26 08:29:56 -05:00
common meson: allow disabling building/installation of static libraries. 2026-02-23 16:45:40 +01:00
fe_utils Fix variety of typos and grammar mistakes 2026-02-24 13:26:37 +09:00
include Reduce includes in pgstat.h 2026-02-26 13:50:24 +01:00
interfaces libpq: Grease the protocol by default 2026-02-23 10:48:20 -08:00
makefiles Restore AIX support. 2026-02-23 13:34:22 -05:00
pl EUC_CN, EUC_JP, EUC_KR, EUC_TW: Skip U+00A0 tests instead of failing. 2026-02-25 18:13:22 -08:00
port Fix USE_SLICING_BY_8_CRC32C builds on x86 2026-02-25 08:44:59 +07:00
template Restore AIX support. 2026-02-23 13:34:22 -05:00
test Stabilize output of new isolation test insert-conflict-do-update-4. 2026-02-25 10:51:42 -05:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Add non-text output formats to pg_dumpall 2026-02-26 08:29:56 -05:00
tutorial Force standard_conforming_strings to always be ON. 2026-01-21 15:08:38 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in tests: Add a test C++ extension module 2026-01-20 16:42:30 +01:00
Makefile.shlib Restore AIX support. 2026-02-23 13:34:22 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls-global.mk Fix update-po for the PGXS case 2025-10-16 20:21:05 +02:00