1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-23 14:01:44 +03:00

Use standard macro for psql binary file open. Add comment explaining

control-z requirement.
This commit is contained in:
Bruce Momjian
2004-07-11 13:29:16 +00:00
parent c8c40bbc9e
commit 98e9775a3a
5 changed files with 16 additions and 21 deletions

View File

@ -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