Skip to content
Advertisement

enable compression in TimeScaleDB hypertable – invalid column name

When I try and enable compression on my TimeScale DB hypertable using this query:

I get the following error:

All I can say is that AssetId is a valid column in the Session table. I’m not sure what else to try.

Is anybody familiar with this error and could offer a solution please?

Thank you

Advertisement

Answer

Sometimes Postgresql requires the case-sensitive version of the name and therefore the column name was to be quoted.

That said, all you do is to double-quote the name inside the passed string: timescaledb.compress_segmentby = '"AssetId"'

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement