Content-Length: 273947 | pFad | http://github.com/postgrespro/postgres_cluster/commit/b44fc39fcecf58c1c93a322d71be2faee525853f

51 pg_dump: make argument combination error exit code consistent · postgrespro/postgres_cluster@b44fc39 · GitHub
Skip to content

Commit b44fc39

Browse files
committed
pg_dump: make argument combination error exit code consistent
Per report from Pavel Golub
1 parent f1ba94b commit b44fc39

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,16 @@ main(int argc, char **argv)
563563
dump_inserts = 1;
564564

565565
if (dataOnly && schemaOnly)
566-
exit_horribly(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
566+
{
567+
write_msg(NULL, "options -s/--schema-only and -a/--data-only cannot be used together\n");
568+
exit_nicely(1);
569+
}
567570

568571
if (dataOnly && outputClean)
569-
exit_horribly(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
572+
{
573+
write_msg(NULL, "options -c/--clean and -a/--data-only cannot be used together\n");
574+
exit_nicely(1);
575+
}
570576

571577
if (dump_inserts && oids)
572578
{

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_cluster/commit/b44fc39fcecf58c1c93a322d71be2faee525853f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy