Properly format license error hint

Commit 57fde383b3dddd0b52263218e65a0135981c2d34 changed the
messaging but did not format the error hint correctly.
This patch fixes the error hint.

Fixes #5490
This commit is contained in:
Konstantina Skovola 2023-04-06 09:00:55 +03:00 committed by Konstantina Skovola
parent 8c77be6c68
commit 3814a3f351
3 changed files with 5 additions and 5 deletions

View File

@ -167,7 +167,7 @@ error_no_default_fn_community(void)
errmsg("functionality not supported under the current \"%s\" license. Learn more at "
"https://timescale.com/.",
ts_guc_license),
errhint("To get access to all features, and the best time-series experience try out "
errhint("To access all features and the best time-series experience, try out "
"Timescale Cloud.")));
}

View File

@ -160,8 +160,8 @@ ts_chunk_dispatch_get_chunk_insert_state(ChunkDispatch *dispatch, Point *point,
errmsg("functionality not supported under the current \"%s\" license. "
"Learn more at https://timescale.com/.",
ts_guc_license),
errhint("To get access to all features, and the best time-series "
"experience try out Timescale Cloud")));
errhint("To access all features and the best time-series "
"experience, try out Timescale Cloud")));
}
MemoryContextSwitchTo(old_context);

View File

@ -54,7 +54,7 @@ SELECT create_hypertable('metrics', 'time');
ALTER TABLE metrics SET (timescaledb.compress);
ERROR: functionality not supported under the current "apache" license. Learn more at https://timescale.com/.
HINT: To get access to all features, and the best time-series experience try out Timescale Cloud.
HINT: To access all features and the best time-series experience, try out Timescale Cloud.
INSERT INTO metrics
VALUES ('2022-01-01 00:00:00', 1), ('2022-01-01 01:00:00', 2), ('2022-01-01 02:00:00', 3);
CREATE MATERIALIZED VIEW metrics_hourly
@ -67,7 +67,7 @@ FROM metrics
GROUP BY bucket
WITH NO DATA;
ERROR: functionality not supported under the current "apache" license. Learn more at https://timescale.com/.
HINT: To get access to all features, and the best time-series experience try out Timescale Cloud.
HINT: To access all features and the best time-series experience, try out Timescale Cloud.
CREATE MATERIALIZED VIEW metrics_hourly
AS
SELECT time_bucket(INTERVAL '1 hour', time) AS bucket,