|
1 |
| -set PGPORT=5432 |
2 |
| -set PGHOST=localhost |
3 |
| -set PGUSER=postgres |
4 |
| -set PGPASSWORD=yourpasswordhere |
5 |
| -set THEDB=geocoder |
6 |
| -set PGBIN=C:\Program Files\PostgreSQL\9.1\bin |
7 |
| -set PGCONTRIB=C:\Program Files\PostgreSQL\9.1\share\contrib |
8 |
| -REM "%PGBIN%\psql" -d "%THEDB%" -f "%PGCONTRIB%\fuzzystrmatch.sql" |
9 |
| -REM If you are using PostgreSQL 9.1 or above, use the extension syntax instead as shown below |
10 |
| -"%PGBIN%\psql" -d "%THEDB%" -c "CREATE EXTENSION fuzzystrmatch;" |
11 |
| -"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger;" |
12 |
| -REM unremark this next line and edit if you want the search paths set as part of the install |
13 |
| -REM "%PGBIN%\psql" -d "%THEDB%" -c "ALTER DATABASE %THEDB% SET search_path=public, tiger;" |
14 |
| -"%PGBIN%\psql" -d "%THEDB%" -f "create_geocode.sql" |
15 |
| -REM "%PGBIN%\psql" -d "%THEDB%" -f "tables\lookup_tables_2011.sql" |
16 |
| -"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger_data;" |
17 |
| -"%PGBIN%\psql" -d "%THEDB%" -f "tiger_loader_2016.sql;" |
18 |
| -pause |
19 |
| - |
| 1 | +set PGPORT=5432 |
| 2 | +set PGHOST=localhost |
| 3 | +set PGUSER=postgres |
| 4 | +set PGPASSWORD=yourpasswordhere |
| 5 | +set THEDB=geocoder |
| 6 | +set PGBIN=C:\Program Files\PostgreSQL\9.1\bin |
| 7 | +set PGCONTRIB=C:\Program Files\PostgreSQL\9.1\share\contrib |
| 8 | +REM "%PGBIN%\psql" -d "%THEDB%" -f "%PGCONTRIB%\fuzzystrmatch.sql" |
| 9 | +REM If you are using PostgreSQL 9.1 or above, use the extension syntax instead as shown below |
| 10 | +"%PGBIN%\psql" -d "%THEDB%" -c "CREATE EXTENSION fuzzystrmatch;" |
| 11 | +"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger;" |
| 12 | +REM unremark this next line and edit if you want the search paths set as part of the install |
| 13 | +REM "%PGBIN%\psql" -d "%THEDB%" -c "ALTER DATABASE %THEDB% SET search_path=public, tiger;" |
| 14 | +"%PGBIN%\psql" -d "%THEDB%" -f "create_geocode.sql" |
| 15 | +REM "%PGBIN%\psql" -d "%THEDB%" -f "tables\lookup_tables_2011.sql" |
| 16 | +"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger_data;" |
| 17 | +"%PGBIN%\psql" -d "%THEDB%" -f "tiger_loader_2016.sql;" |
| 18 | +pause |
| 19 | + |
0 commit comments