Skip to content

Commit

Permalink
Minor README.md fixes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fabriziomello committed Dec 19, 2024
1 parent 44dd49e commit 57be974
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
);
```
Expand Down Expand Up @@ -151,15 +151,15 @@ 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),
MIN(temperature)
FROM
conditions
GROUP BY
device,
location,
bucket;
```
Expand Down

0 comments on commit 57be974

Please sign in to comment.