From 57be97462b565f5d5b3aee0e9b5123454e672606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADzio=20de=20Royes=20Mello?= Date: Thu, 19 Dec 2024 11:22:44 -0300 Subject: [PATCH] Minor README.md fixes Used the `timescaledb` image instead of `timescaledb-ha` for docker run example cause it is small and have enough for starting trying the extension. Also fixed some column names in order to all examples works only with copy/paste. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 16b211fdd1e..8a3823e986b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Install from a Docker container: 1. Run the TimescaleDB container: ```bash - docker run -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=password timescale/timescaledb-ha:pg17 + docker run -d --name timescaledb -p 5432:5432 -e POSTGRES_PASSWORD=password timescale/timescaledb:latest-pg17 ``` 1. Connect to a database: @@ -68,7 +68,7 @@ TimescaleDB's hypercore is a hybrid row-columnar store that boosts analytical qu ```sql ALTER TABLE conditions SET ( timescaledb.compress, - timescaledb.compress_segmentby = 'device_id' + timescaledb.compress_segmentby = 'location' ); ``` @@ -151,7 +151,7 @@ For example, create a continuous aggregate view for daily weather data in two si CREATE MATERIALIZED VIEW conditions_summary_daily WITH (timescaledb.continuous) AS SELECT - device, + location, time_bucket(INTERVAL '1 day', time) AS bucket, AVG(temperature), MAX(temperature), @@ -159,7 +159,7 @@ For example, create a continuous aggregate view for daily weather data in two si FROM conditions GROUP BY - device, + location, bucket; ```