From fefe3470cb6f0ff962828528f7f979a0266b2d6a Mon Sep 17 00:00:00 2001 From: Shaun Davis Date: Tue, 25 Jun 2024 13:58:38 -0500 Subject: [PATCH] remove this --- bin/refresh-collation | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 bin/refresh-collation diff --git a/bin/refresh-collation b/bin/refresh-collation deleted file mode 100755 index d797f8b1..00000000 --- a/bin/refresh-collation +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -psql postgres://postgres:$OPERATOR_PASSWORD@$FLY_APP_NAME.internal:5432/postgres <<'EOF' -DO $$ -DECLARE - r RECORD; -BEGIN - FOR r IN (SELECT datname FROM pg_database WHERE datallowconn = true) - LOOP - BEGIN - EXECUTE 'ALTER DATABASE ' || quote_ident(r.datname) || ' REFRESH COLLATION VERSION;'; - EXCEPTION - WHEN OTHERS THEN - RAISE NOTICE 'Failed to refresh collation for database: % - %', r.datname, SQLERRM; - END; - END LOOP; -END $$; -EOF