Skip to content

Commit 8146896

Browse files
committed
fix: create the pg_stat_kcache extension before running of an observing session as observing uses the pg_stat_kcache_reset() function
1 parent eb4f5a4 commit 8146896

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: internal/observer/observing_clone.go

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ func (c *ObservingClone) resetStat(ctx context.Context) error {
292292
return errors.Wrap(err, "failed to create the logerrors extension")
293293
}
294294

295+
if _, err := c.superUserDB.Exec(ctx, `create extension if not exists pg_stat_kcache`); err != nil {
296+
return errors.Wrap(err, "failed to create the pg_stat_kcache extension")
297+
}
298+
295299
if _, err := c.superUserDB.Exec(ctx,
296300
`select
297301
pg_stat_reset(),

0 commit comments

Comments
 (0)