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 " errmsg("functionality not supported under the current \"%s\" license. Learn more at "
"https://timescale.com/.", "https://timescale.com/.",
ts_guc_license), 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."))); "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. " errmsg("functionality not supported under the current \"%s\" license. "
"Learn more at https://timescale.com/.", "Learn more at https://timescale.com/.",
ts_guc_license), ts_guc_license),
errhint("To get access to all features, and the best time-series " errhint("To access all features and the best time-series "
"experience try out Timescale Cloud"))); "experience, try out Timescale Cloud")));
} }
MemoryContextSwitchTo(old_context); MemoryContextSwitchTo(old_context);

View File

@ -54,7 +54,7 @@ SELECT create_hypertable('metrics', 'time');
ALTER TABLE metrics SET (timescaledb.compress); ALTER TABLE metrics SET (timescaledb.compress);
ERROR: functionality not supported under the current "apache" license. Learn more at https://timescale.com/. 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 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); 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 CREATE MATERIALIZED VIEW metrics_hourly
@ -67,7 +67,7 @@ FROM metrics
GROUP BY bucket GROUP BY bucket
WITH NO DATA; WITH NO DATA;
ERROR: functionality not supported under the current "apache" license. Learn more at https://timescale.com/. 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 CREATE MATERIALIZED VIEW metrics_hourly
AS AS
SELECT time_bucket(INTERVAL '1 hour', time) AS bucket, SELECT time_bucket(INTERVAL '1 hour', time) AS bucket,