Skip to content

Commit

Permalink
PG16: Remove support of Multi-Node
Browse files Browse the repository at this point in the history
Since multi-node has being deprecated we'll not support it on PG16. In
the following releases we're working on completely remove it from the
TimescaleDB.
  • Loading branch information
fabriziomello committed Oct 12, 2023
1 parent ecd88f8 commit a437ddd
Show file tree
Hide file tree
Showing 35 changed files with 10,293 additions and 12,564 deletions.
8 changes: 8 additions & 0 deletions src/hypertable.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
#include "debug_assert.h"
#include "osm_callbacks.h"
#include "error_utils.h"
#include "compat/compat.h"

Oid
ts_rel_get_owner(Oid relid)
Expand Down Expand Up @@ -2046,6 +2047,13 @@ ts_hypertable_create(PG_FUNCTION_ARGS)
Datum
ts_hypertable_distributed_create(PG_FUNCTION_ARGS)
{
#if PG16_GE
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("distributed hypertable is not supported"),
errhint("Multi-node is not supported anymore starting on PostgreSQL >= 16."),
errdetail("Use the \"create_hypertable\" to create a regular hypertable instead.")));
#endif
return ts_hypertable_create_time_prev(fcinfo, true);
}

Expand Down
12 changes: 12 additions & 0 deletions tsl/src/data_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,12 +857,24 @@ data_node_add_internal(PG_FUNCTION_ARGS, bool set_distid)
Datum
data_node_add(PG_FUNCTION_ARGS)
{
#if PG16_GE
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("adding data node is not supported"),
errhint("Multi-node is not supported anymore starting on PostgreSQL >= 16.")));
#endif
return data_node_add_internal(fcinfo, true);
}

Datum
data_node_add_without_dist_id(PG_FUNCTION_ARGS)
{
#if PG16_GE
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("adding data node is not supported"),
errhint("Multi-node is not supported anymore starting on PostgreSQL >= 16.")));
#endif
return data_node_add_internal(fcinfo, false);
}

Expand Down
Loading

0 comments on commit a437ddd

Please sign in to comment.