Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2ea31fa

Browse files
committed
*** empty log message ***
1 parent c823143 commit 2ea31fa

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.141 2000/01/29 16:58:44 petere Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.142 2000/02/02 13:20:15 petere Exp $
2626
*
2727
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2828
*
@@ -127,7 +127,7 @@ char g_comment_end[10];
127127
static void
128128
help(const char *progname)
129129
{
130-
printf("%s dumps a database to a text file.\n\n", progname);
130+
printf("%s dumps a database as a text file.\n\n", progname);
131131
puts( "Usage:");
132132
printf(" %s [options] dbname\n\n", progname);
133133
puts( "Options:");
@@ -589,13 +589,6 @@ main(int argc, char **argv)
589589
else
590590
progname = strrchr(argv[0], SEP_CHAR) + 1;
591591

592-
/*
593-
* A note on options:
594-
*
595-
* The -f option was yanked because in the rest of the world (and
596-
* PostgreSQL) it specifies an *input* file. You can use the shell's
597-
* output redirection to achieve the same.
598-
*/
599592

600593
#ifdef HAVE_GETOPT_LONG
601594
while ((c = getopt_long(argc, argv, "acdDf:h:nNop:st:uvxzV?", long_options, &optindex)) != -1)
@@ -621,9 +614,8 @@ main(int argc, char **argv)
621614
attrNames = true;
622615
break;
623616
case 'f':
624-
fprintf(stderr, "%s: The -f option is obsolete. You can achieve the same by writing %s > %s.\n",
625-
progname, progname, optarg);
626-
exit(1);
617+
filename = optarg;
618+
break;
627619
case 'h': /* server host */
628620
pghost = optarg;
629621
break;

0 commit comments

Comments
 (0)