Skip to content

Commit

Permalink
Merge pull request #5 from Trendyol/fix/hyper-table-relation-error
Browse files Browse the repository at this point in the history
fix: hypertable relation not found error when timescale db plugin not…
  • Loading branch information
3n0ugh authored Nov 5, 2024
2 parents adf58c7 + fbb5e4b commit 1b83496
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pq/timescaledb/hypertable.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ func (tdb *TimescaleDB) FindHyperTables(ctx context.Context) (map[string]string,
var pgErr *pgconn.PgError
if goerrors.As(err, &pgErr) {
if pgErr.Code == "42P01" {
tdb.ticker.Stop()
logger.Warn("timescale db hypertable relation not found", "error", err)
return nil, nil
}
}
Expand Down

0 comments on commit 1b83496

Please sign in to comment.