diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-07-11 13:29:16 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-07-11 13:29:16 +0000 |
| commit | 98e9775a3ad56754de1caa2558c66a0040933460 (patch) | |
| tree | dcab9c34ba1c15ef4f34f5bbd205f1f97df65116 /src/bin/psql/copy.c | |
| parent | c8c40bbc9ea8fcb2e47767a9f15c4a5c74569b8d (diff) | |
Use standard macro for psql binary file open. Add comment explaining
control-z requirement.
Diffstat (limited to 'src/bin/psql/copy.c')
| -rw-r--r-- | src/bin/psql/copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index cc899bf8796..54bc7aea684 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.48 2004/07/11 00:54:55 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/copy.c,v 1.49 2004/07/11 13:29:15 momjian Exp $ */ #include "postgres_fe.h" #include "copy.h" @@ -516,7 +516,7 @@ do_copy(const char *args) if (options->from) { if (options->file) - copystream = fopen(options->file, R_TEXTFILE); + copystream = fopen(options->file, PG_BINARY_R); else if (!options->psql_inout) copystream = pset.cur_cmd_source; else |
