Hi,

"pg_restore --help" gives this message for the --no-tablespaces parameter:

  --no-tablespaces         do not dump tablespace assignments

The message should say "restore" and not "dump". You'll find a patch attached 
that fixes this issue.

Thanks.

Regards.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com
Index: src/bin/pg_dump/pg_restore.c
===================================================================
RCS file: /opt/cvsroot_postgresql/pgsql/src/bin/pg_dump/pg_restore.c,v
retrieving revision 1.100
diff -c -p -c -r1.100 pg_restore.c
*** src/bin/pg_dump/pg_restore.c	11 Jun 2009 14:49:07 -0000	1.100
--- src/bin/pg_dump/pg_restore.c	19 Nov 2009 15:41:23 -0000
*************** usage(const char *progname)
*** 430,436 ****
  	printf(_("  --no-data-for-failed-tables\n"
  			 "                           do not restore data of tables that could not be\n"
  			 "                           created\n"));
! 	printf(_("  --no-tablespaces         do not dump tablespace assignments\n"));
  	printf(_("  --role=ROLENAME          do SET ROLE before restore\n"));
  	printf(_("  --use-set-session-authorization\n"
  			 "                           use SET SESSION AUTHORIZATION commands instead of\n"
--- 430,436 ----
  	printf(_("  --no-data-for-failed-tables\n"
  			 "                           do not restore data of tables that could not be\n"
  			 "                           created\n"));
! 	printf(_("  --no-tablespaces         do not restore tablespace assignments\n"));
  	printf(_("  --role=ROLENAME          do SET ROLE before restore\n"));
  	printf(_("  --use-set-session-authorization\n"
  			 "                           use SET SESSION AUTHORIZATION commands instead of\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