Skip to content

Commit

Permalink
Disable MERGE when using hypertables
Browse files Browse the repository at this point in the history
  • Loading branch information
Markos Fountoulakis committed Nov 7, 2022
1 parent 12745c8 commit 41dbc45
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/planner/planner.c
Expand Up @@ -1423,6 +1423,14 @@ replace_hypertable_modify_paths(PlannerInfo *root, List *pathlist, RelOptInfo *i
if (IsA(path, ModifyTablePath))
{
ModifyTablePath *mt = castNode(ModifyTablePath, path);
#if PG15_GE
if (mt->operation == CMD_MERGE)
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("The MERGE command does not support hypertables in this version"),
errhint("Check https://github.com/timescale/timescaledb/issues/4929 for"
"more information and current status")));
#endif

#if PG14_GE
/* We only route UPDATE/DELETE through our CustomNode for PG 14+ because
Expand Down

0 comments on commit 41dbc45

Please sign in to comment.