Tom Lane wrote:
> Bruce Momjian <br...@momjian.us> writes:
> > I used the wording from the pg_restore SGML manual page in the --help
> > text, to be more consistent.  Thanks for the report.
> 
> pg_dump has the same wording.  pg_dumpall might need adjustment too,
> though I'm not sure (note its --clean acts on DBs not individual
> objects)

OK, done with attached patch.

-- 
  Bruce Momjian  <br...@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
Index: src/bin/pg_dump/pg_dump.c
===================================================================
RCS file: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v
retrieving revision 1.512
diff -c -c -r1.512 pg_dump.c
*** src/bin/pg_dump/pg_dump.c	5 Jan 2009 16:54:37 -0000	1.512
--- src/bin/pg_dump/pg_dump.c	6 Jan 2009 18:01:06 -0000
***************
*** 803,809 ****
  	printf(_("\nOptions controlling the output content:\n"));
  	printf(_("  -a, --data-only             dump only the data, not the schema\n"));
  	printf(_("  -b, --blobs                 include large objects in dump\n"));
! 	printf(_("  -c, --clean                 clean (drop) schema prior to create\n"));
  	printf(_("  -C, --create                include commands to create database in dump\n"));
  	printf(_("  -d, --inserts               dump data as INSERT commands, rather than COPY\n"));
  	printf(_("  -D, --column-inserts        dump data as INSERT commands with column names\n"));
--- 803,809 ----
  	printf(_("\nOptions controlling the output content:\n"));
  	printf(_("  -a, --data-only             dump only the data, not the schema\n"));
  	printf(_("  -b, --blobs                 include large objects in dump\n"));
! 	printf(_("  -c, --clean                 clean (drop) database objects before recreating\n"));
  	printf(_("  -C, --create                include commands to create database in dump\n"));
  	printf(_("  -d, --inserts               dump data as INSERT commands, rather than COPY\n"));
  	printf(_("  -D, --column-inserts        dump data as INSERT commands with column names\n"));
Index: src/bin/pg_dump/pg_dumpall.c
===================================================================
RCS file: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v
retrieving revision 1.111
diff -c -c -r1.111 pg_dumpall.c
*** src/bin/pg_dump/pg_dumpall.c	5 Jan 2009 16:54:37 -0000	1.111
--- src/bin/pg_dump/pg_dumpall.c	6 Jan 2009 18:01:07 -0000
***************
*** 500,506 ****
  			 "                           fail after waiting TIMEOUT for a table lock\n"));
  	printf(_("\nOptions controlling the output content:\n"));
  	printf(_("  -a, --data-only          dump only the data, not the schema\n"));
! 	printf(_("  -c, --clean              clean (drop) databases prior to create\n"));
  	printf(_("  -d, --inserts            dump data as INSERT, rather than COPY, commands\n"));
  	printf(_("  -D, --column-inserts     dump data as INSERT commands with column names\n"));
  	printf(_("  -g, --globals-only       dump only global objects, no databases\n"));
--- 500,506 ----
  			 "                           fail after waiting TIMEOUT for a table lock\n"));
  	printf(_("\nOptions controlling the output content:\n"));
  	printf(_("  -a, --data-only          dump only the data, not the schema\n"));
! 	printf(_("  -c, --clean              clean (drop) databases before recreating\n"));
  	printf(_("  -d, --inserts            dump data as INSERT, rather than COPY, commands\n"));
  	printf(_("  -D, --column-inserts     dump data as INSERT commands with column names\n"));
  	printf(_("  -g, --globals-only       dump only global objects, no databases\n"));
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to