We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e24c01 commit d7fd9b9Copy full SHA for d7fd9b9
src/copy_stmt_hooking.c
@@ -73,7 +73,21 @@ is_pathman_related_copy(Node *parsetree)
73
/* Check that relation is partitioned */
74
if (get_pathman_relation_info(partitioned_table))
75
{
76
- elog(DEBUG1, "Overriding default behavior for COPY (%u)", partitioned_table);
+ ListCell *lc;
77
+
78
+ /* Analyze options list */
79
+ foreach (lc, copy_stmt->options)
80
+ {
81
+ DefElem *defel = (DefElem *) lfirst(lc);
82
83
+ Assert(IsA(defel, DefElem));
84
85
+ /* We do not support freeze */
86
+ if (strcmp(defel->defname, "freeze") == 0)
87
+ elog(ERROR, "freeze is not supported for partitioned tables");
88
+ }
89
90
+ elog(DEBUG1, "Overriding default behavior for COPY [%u]", partitioned_table);
91
return true;
92
}
93
0 commit comments