diff --git a/.github/workflows/aligulac-import.yaml b/.github/workflows/aligulac-import.yaml index dd78804..71afa85 100644 --- a/.github/workflows/aligulac-import.yaml +++ b/.github/workflows/aligulac-import.yaml @@ -35,7 +35,7 @@ jobs: - name: Modify dump for faster import run: rg --passthru "^CREATE TABLE" -r "CREATE UNLOGGED TABLE" aligulac.sql > aligulac2.sql - name: grep changes - run: rg UNLOGGED aligulac2.sql + run: rg UNLOGGED aligulac2.sql && rg -C 2 "CREATE INDEX" aligulac2.sql - name: DB Settings for faster import run: PGPASSWORD=postgres psql -h localhost -p 5432 -d postgres -U postgres -c "ALTER SYSTEM SET wal_level = minimal;" -c "ALTER SYSTEM SET fsync = off;" -c "ALTER SYSTEM SET full_page_writes = off;" -c "ALTER SYSTEM SET synchronous_commit = off;" -c "SELECT pg_reload_conf();" -c "SET max_parallel_maintenance_workers TO 2;" -c "SET maintenance_work_mem TO '1 GB';" -c "SHOW wal_level;" - name: Import Aligulac DB