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

Commit2661a79

Browse files
committed
Don't treat DumpOptions->dump_inserts like a boolean
This has been an integer count since7e413a0 so treat it explicitlylike an integer.No backpatch since this is just cosmetic.
1 parent1c4e88e commit2661a79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/bin/pg_dump/pg_backup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ typedef struct _restoreOptions
7171
char*use_role;/* Issue SET ROLE to this */
7272
intdropSchema;
7373
intdisable_dollar_quoting;
74-
intdump_inserts;
74+
intdump_inserts;/* 0 = COPY, otherwise rows per INSERT */
7575
intcolumn_inserts;
7676
intif_exists;
7777
intno_comments;/* Skip comments */

‎src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2254,7 +2254,7 @@ dumpTableData(Archive *fout, TableDataInfo *tdinfo)
22542254
char *copyStmt;
22552255
const char *copyFrom;
22562256

2257-
if (!dopt->dump_inserts)
2257+
if (dopt->dump_inserts == 0)
22582258
{
22592259
/* Dump/restore using COPY */
22602260
dumpFn = dumpTableData_copy;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp