Fix error hint for compress_chunk

The errror hint for compress_chunk misspelled the option to use
for enabling compression. This patch changes the error hint and
also makes the hint a proper sentence.
This commit is contained in:
Sven Klemm 2019-08-26 10:42:44 +02:00 committed by Matvey Arye
parent b9674600ae
commit 3d55595ad0

View File

@ -152,7 +152,7 @@ compresschunkcxt_init(CompressChunkCxt *cxt, Cache *hcache, Oid hypertable_relid
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED), (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("chunks can be compressed only if compression property is set on the " errmsg("chunks can be compressed only if compression property is set on the "
"hypertable"), "hypertable"),
errhint("use ALTER TABLE with timescaledb.compression option "))); errhint("Use ALTER TABLE with timescaledb.compress option.")));
} }
compress_ht = ts_hypertable_get_by_id(srcht->fd.compressed_hypertable_id); compress_ht = ts_hypertable_get_by_id(srcht->fd.compressed_hypertable_id);
if (compress_ht == NULL) if (compress_ht == NULL)