Skip to content

Commit

Permalink
Create omdb.dump on PG11 for the more compatible archive format
Browse files Browse the repository at this point in the history
  • Loading branch information
df7cb committed Aug 10, 2021
1 parent b8bb4a7 commit 06fe1b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# using PG version with archive format compatible with older releases
PGVERSION = 11
PGUSER = postgres

dump: omdb.dump

omdb.dump: www.omdb.org/data/all_movies.csv.bz2
./import
pg_dump -Fc -f $@ omdb
pg_virtualenv -i '--auth=trust --username=$(PGUSER)' -v $(PGVERSION) sh -c "export PGUSER=$(PGUSER) && ./import && pg_dump -Fc -f $@ omdb"

www.omdb.org/data/all_movies.csv.bz2:
./download
Expand Down

0 comments on commit 06fe1b6

Please sign in to comment.