--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,7 @@ PGFILEDESC = "pg_stat_plans - track per-
 
 LDFLAGS_SL += $(filter -lm, $(LIBS))
 
-REGRESS_OPTS = --temp-config $(srcdir)/pg_stat_plans.conf
+REGRESS_OPTS = --temp-instance=./tmp_check --temp-config $(srcdir)/pg_stat_plans.conf
 REGRESS = select activity privileges cleanup
 
 PG_CFLAGS = $(shell pkg-config --cflags libzstd) $(shell pkg-config --cflags openssl)
@@ -41,7 +41,7 @@ endif
 ifneq (,$(findstring PostgreSQL 19,$(shell $(PG_CONFIG) --version)))
 	PLAN_ADVICE_LIB := $(wildcard $(shell $(PG_CONFIG) --pkglibdir)/pg_plan_advice.*)
 	ifneq (,$(PLAN_ADVICE_LIB))
-		REGRESS_OPTS = --temp-config $(srcdir)/pg_plan_advice.conf
+		REGRESS_OPTS = --temp-instance=./tmp_check --temp-config $(srcdir)/pg_plan_advice.conf
 		REGRESS = select activity privileges plan_advice cleanup
 	endif
 endif
