File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,16 @@ while [ ${RETRY_COUNT} -lt ${MAX_RETRIES} ]; do
288288 sleep 1
289289done
290290
291- # 8. Clean up pgBackRest config (contains credentials)
291+ # 8. Clean up Crunchy Bridge internal schemas and extensions
292+ log " Cleaning up schemas and extensions..."
293+
294+ sudo -u postgres ${PG_BIN} /psql -p ${PG_PORT} -h 127.0.0.1 -d ${DATABASE_NAME} << 'EOSQL '
295+ DROP SCHEMA IF EXISTS perfsnap CASCADE;
296+ DROP SCHEMA IF EXISTS hint_plan CASCADE;
297+ DROP EXTENSION IF EXISTS crunchy_pooler CASCADE;
298+ DROP EXTENSION IF EXISTS pg_stat_statements CASCADE;
299+ EOSQL
300+
292301log " Cleaning up pgBackRest config..."
293302if [ -f " ${PGBACKREST_CONF} " ]; then
294303 rm -f " ${PGBACKREST_CONF} " || log " Warning: Could not remove pgBackRest config"
You can’t perform that action at this time.
0 commit comments