|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.200 2003/05/09 21:19:48 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.201 2003/05/16 02:40:19 momjian Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -761,10 +761,17 @@ DoCopy(const CopyStmt *stmt) |
761 | 761 | copy_file=AllocateFile(filename,PG_BINARY_R); |
762 | 762 |
|
763 | 763 | if (copy_file==NULL) |
| 764 | +#ifndefWIN32 |
764 | 765 | elog(ERROR,"COPY command, running in backend with " |
765 | 766 | "effective uid %d, could not open file '%s' for " |
766 | 767 | "reading. Errno = %s (%d).", |
767 | 768 | (int)geteuid(),filename,strerror(errno),errno); |
| 769 | +#else |
| 770 | +elog(ERROR,"COPY command, running in backend, " |
| 771 | +"could not open file '%s' for " |
| 772 | +"reading. Errno = %s (%d).", |
| 773 | +filename,strerror(errno),errno); |
| 774 | +#endif |
768 | 775 |
|
769 | 776 | fstat(fileno(copy_file),&st); |
770 | 777 | if (S_ISDIR(st.st_mode)) |
@@ -814,10 +821,17 @@ DoCopy(const CopyStmt *stmt) |
814 | 821 | umask(oumask); |
815 | 822 |
|
816 | 823 | if (copy_file==NULL) |
| 824 | +#ifndefWIN32 |
817 | 825 | elog(ERROR,"COPY command, running in backend with " |
818 | 826 | "effective uid %d, could not open file '%s' for " |
819 | 827 | "writing. Errno = %s (%d).", |
820 | 828 | (int)geteuid(),filename,strerror(errno),errno); |
| 829 | +#else |
| 830 | +elog(ERROR,"COPY command, running in backend, " |
| 831 | +"could not open file '%s' for " |
| 832 | +"writing. Errno = %s (%d).", |
| 833 | +filename,strerror(errno),errno); |
| 834 | +#endif |
821 | 835 | fstat(fileno(copy_file),&st); |
822 | 836 | if (S_ISDIR(st.st_mode)) |
823 | 837 | { |
|