Content-Length: 283568 | pFad | http://github.com/postgrespro/postgres/commit/2661a793ff59149af1d844d6be504e421c04733e

32 Don't treat DumpOptions->dump_inserts like a boolean · postgrespro/postgres@2661a79 · GitHub
Skip to content

Commit 2661a79

Browse files
committed
Don't treat DumpOptions->dump_inserts like a boolean
This has been an integer count since 7e413a0 so treat it explicitly like an integer. No backpatch since this is just cosmetic.
1 parent 1c4e88e commit 2661a79

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
int dropSchema;
7373
int disable_dollar_quoting;
74-
int dump_inserts;
74+
int dump_inserts; /* 0 = COPY, otherwise rows per INSERT */
7575
int column_inserts;
7676
int if_exists;
7777
int no_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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/2661a793ff59149af1d844d6be504e421c04733e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy