postgresql/src
Andrew Dunstan 3c19983cc0 pg_restore: add --no-globals option to skip globals
This is a followup to commit 763aaa06f0 Add non-text output formats to
pg_dumpall.

Add a --no-globals option to pg_restore that skips restoring global
objects (roles and tablespaces) when restoring from a pg_dumpall
archive.  When -C/--create is not specified, databases that do not
already exist on the target server are also skipped.

This is useful when restoring only specific databases from a pg_dumpall
archive without needing the global objects to be restored first.

Author: Mahendra Singh Thalor <mahi6run@gmail.com>

With small tweaks by me.

Discussion: https://postgr.es/m/CAKYtNArdcc5kx1MdTtTKFNYiauo3=zCA-NB0LmBCW-RU_kSb3A@mail.gmail.com
2026-03-04 16:53:29 -05:00
..
backend Fix estimate_hash_bucket_stats's correction for skewed data. 2026-03-04 15:33:15 -05:00
bin pg_restore: add --no-globals option to skip globals 2026-03-04 16:53:29 -05:00
common Fix some -Wcast-qual warnings 2026-02-27 21:57:33 +01:00
fe_utils Fix yet another bug in archive streamer with LZ4 decompression. 2026-03-04 12:08:37 -05:00
include Allow table exclusions in publications via EXCEPT TABLE. 2026-03-04 15:56:48 +05:30
interfaces Fix some -Wcast-qual warnings 2026-02-27 21:57:33 +01: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 Check for memset_explicit() and explicit_memset() 2026-03-02 07:51:19 +01:00
template Restore AIX support. 2026-02-23 13:34:22 -05:00
test Fix estimate_hash_bucket_stats's correction for skewed data. 2026-03-04 15:33:15 -05:00
timezone Use fallthrough attribute instead of comment 2026-02-19 08:51:12 +01:00
tools Centralize detection of x86 CPU features 2026-02-27 20:30:41 +07: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