Skip to content

Commit

Permalink
grep for UNLOGGED
Browse files Browse the repository at this point in the history
  • Loading branch information
tobijdc authored Feb 22, 2024
1 parent 023bba8 commit e6ce5e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/aligulac-import.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
run: wget -qO- http://static.aligulac.com/aligulac.sql.gz | gzip -d > aligulac.sql
- name: Modify dump for faster import
run: sed -i -e '/^CREATE TABLE/ s//CREATE UNLOGGED TABLE/g' aligulac.sql
- name: grep changes
run: grep UNLOGGED aligulac.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
Expand Down

0 comments on commit e6ce5e3

Please sign in to comment.