Skip to content

Commit 2e56588

Browse files
committed
Improve usage instructions.
1 parent 12b6ab9 commit 2e56588

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,21 @@ Schema hints are taken from [a post on Meta.StackExchange](http://meta.stackexch
1313
## Usage
1414

1515
- Create the database `stackoverflow` in your database: `CREATE DATABASE stackoverflow;`
16+
- You can use a custom database name as well. Make sure to explicitly give
17+
it while executing the script later.
1618
- Move the following files to the folder from where the program is executed:
1719
`Badges.xml`, `Votes.xml`, `Posts.xml`, `Users.xml`, `Tags.xml`.
20+
- In some old dumps, the cases in the filenames are different.
1821
- Execute in the current folder (in parallel, if desired):
1922
- `python load_into_pg.py Badges`
2023
- `python load_into_pg.py Posts`
21-
- `python load_into_pg.py Tags` (only present in later dumps)
24+
- `python load_into_pg.py Tags` (not present in earliest dumps)
2225
- `python load_into_pg.py Users`
2326
- `python load_into_pg.py Votes`
2427
- Finally, after all the initial tables have been created:
2528
- `psql stackoverflow < ./sql/final_post.sql`
29+
- If you used a different database name, make sure to use that instead of
30+
`stackoverflow` while executing this step.
2631

2732
## Caveats and TODOs
2833

0 commit comments

Comments
 (0)