|
35 | 35 | #include"libpq/libpq.h"
|
36 | 36 |
|
37 | 37 |
|
| 38 | +/* |
| 39 | + * While building PostgreSQL on Windows the msvc compiler produces .def file |
| 40 | + * which contains all the symbols that were declared as external except the ones |
| 41 | + * that were declared but not defined. We redefine variables below to prevent |
| 42 | + * 'unresolved symbol' errors on Windows. But we have to disable COPY feature |
| 43 | + * on Windows |
| 44 | + */ |
| 45 | +#ifdefWIN32 |
| 46 | +boolXactReadOnly= false; |
| 47 | +ProtocolVersionFrontendProtocol= (ProtocolVersion)0; |
| 48 | +#endif |
| 49 | + |
| 50 | + |
38 | 51 | staticuint64PathmanCopyFrom(CopyStatecstate,
|
39 | 52 | Relationparent_rel,
|
40 | 53 | List*range_table,
|
@@ -95,6 +108,11 @@ is_pathman_related_copy(Node *parsetree)
|
95 | 108 | }
|
96 | 109 |
|
97 | 110 | elog(DEBUG1,"Overriding default behavior for COPY [%u]",partitioned_table);
|
| 111 | + |
| 112 | +#ifdefWIN32 |
| 113 | +elog(ERROR,"COPY is not supported for partitioned tables on Windows"); |
| 114 | +#endif |
| 115 | + |
98 | 116 | return true;
|
99 | 117 | }
|
100 | 118 |
|
|