diff --git a/main.go b/main.go index 6932561..5665eba 100644 --- a/main.go +++ b/main.go @@ -353,7 +353,7 @@ func connectToPostgreSQL(pgConnStr string) error { // Enable TimescaleDB _, err = db.Exec(` CREATE EXTENSION IF NOT EXISTS timescaledb; - SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE), migrate_data => TRUE; + SELECT create_hypertable('p1', 'timestamp', if_not_exists => TRUE, migrate_data => TRUE); `) if err != nil { log.Fatal("Error creating TimescaleDB extension:", err)