We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93d515 commit 8cc603bCopy full SHA for 8cc603b
internal/workers/crunchy_bridge_restore.sh
@@ -292,7 +292,9 @@ done
292
# 8. Clean up Crunchy Bridge internal schemas and extensions
293
log "Cleaning up schemas and extensions..."
294
295
-sudo -u postgres ${PG_BIN}/psql -p ${PG_PORT} -h 127.0.0.1 -d ${DATABASE_NAME} << 'EOSQL'
+# Use Unix socket connection (no -h flag) to leverage peer authentication
296
+# This avoids needing the postgres password from the restored database
297
+sudo -u postgres ${PG_BIN}/psql -p ${PG_PORT} -d ${DATABASE_NAME} << 'EOSQL'
298
DROP EXTENSION IF EXISTS crunchy_pooler CASCADE;
299
EOSQL
300
0 commit comments