Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48c2c7b

Browse files
committed
pg_dumpall: Skip global objects with --statistics-only or --no-schema.
Previously, pg_dumpall would still dump global objects such as rolesand tablespaces even when --statistics-only or --no-schema was specified.Since these global objects are treated as schema-level data, they shouldbe skipped in these cases.This commit fixes the issue by ensuring that global objects are notdumped when either --statistics-only or --no-schema is used.Author: Fujii Masao <masao.fujii@oss.nttdata.com>Reviewed-by: Corey Huinker <corey.huinker@gmail.com>Discussion:https://postgr.es/m/08129593-6f3c-4fb9-94b7-5aa2eefb99b0@oss.nttdata.comBackpatch-through: 18
1 parentecc5161 commit48c2c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pg_dump/pg_dumpall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ main(int argc, char *argv[])
632632
fprintf(OPF,"SET escape_string_warning = off;\n");
633633
fprintf(OPF,"\n");
634634

635-
if (!data_only)
635+
if (!data_only&& !statistics_only&& !no_schema)
636636
{
637637
/*
638638
* If asked to --clean, do that first. We can avoid detailed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp