mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-15 10:11:29 +08:00
Remove MN leftover create distributed hypertable
This commit removes an unused function that was used in MN setups to create distributed hypertables.
This commit is contained in:
parent
a41e5b8da7
commit
3ad948163c
@ -131,6 +131,7 @@ CREATE FUNCTION @extschema@.create_hypertable(
|
|||||||
) RETURNS TABLE(hypertable_id INT, schema_name NAME, table_name NAME, created BOOL) AS '@MODULE_PATHNAME@', 'ts_hypertable_create' LANGUAGE C VOLATILE;
|
) RETURNS TABLE(hypertable_id INT, schema_name NAME, table_name NAME, created BOOL) AS '@MODULE_PATHNAME@', 'ts_hypertable_create' LANGUAGE C VOLATILE;
|
||||||
|
|
||||||
-- change replication_factor to NULL by default
|
-- change replication_factor to NULL by default
|
||||||
|
-- create stub to not introduce shared library dependency
|
||||||
CREATE FUNCTION @extschema@.create_distributed_hypertable(
|
CREATE FUNCTION @extschema@.create_distributed_hypertable(
|
||||||
relation REGCLASS,
|
relation REGCLASS,
|
||||||
time_column_name NAME,
|
time_column_name NAME,
|
||||||
@ -148,4 +149,4 @@ CREATE FUNCTION @extschema@.create_distributed_hypertable(
|
|||||||
time_partitioning_func REGPROC = NULL,
|
time_partitioning_func REGPROC = NULL,
|
||||||
replication_factor INTEGER = NULL,
|
replication_factor INTEGER = NULL,
|
||||||
data_nodes NAME[] = NULL
|
data_nodes NAME[] = NULL
|
||||||
) RETURNS TABLE(hypertable_id INT, schema_name NAME, table_name NAME, created BOOL) AS '@MODULE_PATHNAME@', 'ts_hypertable_distributed_create' LANGUAGE C VOLATILE;
|
) RETURNS TABLE(hypertable_id INT, schema_name NAME, table_name NAME, created BOOL) AS $$ SELECT NULL::int,NULL::name,NULL::name,NULL::bool; $$ LANGUAGE SQL VOLATILE;
|
||||||
|
@ -1526,7 +1526,6 @@ create_hypertable_datum(FunctionCallInfo fcinfo, const Hypertable *ht, bool crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
TS_FUNCTION_INFO_V1(ts_hypertable_create);
|
TS_FUNCTION_INFO_V1(ts_hypertable_create);
|
||||||
TS_FUNCTION_INFO_V1(ts_hypertable_distributed_create);
|
|
||||||
TS_FUNCTION_INFO_V1(ts_hypertable_create_general);
|
TS_FUNCTION_INFO_V1(ts_hypertable_create_general);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1705,23 +1704,6 @@ ts_hypertable_create(PG_FUNCTION_ARGS)
|
|||||||
return ts_hypertable_create_time_prev(fcinfo, false);
|
return ts_hypertable_create_time_prev(fcinfo, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
Datum
|
|
||||||
ts_hypertable_distributed_create(PG_FUNCTION_ARGS)
|
|
||||||
{
|
|
||||||
#if PG16_GE
|
|
||||||
ereport(ERROR,
|
|
||||||
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
|
||||||
errmsg("distributed hypertable is not supported"),
|
|
||||||
errdetail("Multi-node is not supported anymore on PostgreSQL >= 16.")));
|
|
||||||
#else
|
|
||||||
ereport(WARNING,
|
|
||||||
(errcode(ERRCODE_WARNING_DEPRECATED_FEATURE),
|
|
||||||
errmsg("distributed hypertable is deprecated"),
|
|
||||||
errdetail("Multi-node is deprecated and will be removed in future releases.")));
|
|
||||||
#endif
|
|
||||||
return ts_hypertable_create_time_prev(fcinfo, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
static Oid
|
static Oid
|
||||||
get_sizing_func_oid()
|
get_sizing_func_oid()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user