diff --git a/embedded_postgres.go b/embedded_postgres.go index fcf98d1..d134926 100644 --- a/embedded_postgres.go +++ b/embedded_postgres.go @@ -147,7 +147,7 @@ func (ep *EmbeddedPostgres) downloadAndExtractBinary(cacheExists bool, cacheLoca mu.Lock() defer mu.Unlock() - _, binDirErr := os.Stat(filepath.Join(ep.config.binariesPath, "bin")) + _, binDirErr := os.Stat(filepath.Join(ep.config.binariesPath, "bin", "pg_ctl")) if os.IsNotExist(binDirErr) { if !cacheExists { if err := ep.remoteFetchStrategy(); err != nil {