REM If you are using PostgreSQL 9.1 or above, use the extension syntax instead as shown below\r
REM "%PGBIN%\psql" -d "%THEDB%" -c "CREATE EXTENSION fuzzystrmatch" \r
"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger"\r
+REM unremark this next line and edit if you want the search paths set as part of the install\r
+REM ${PSQL_CMD} -d "%THEDB%" -c "ALTER DATABASE %THEDB% SET search_path=public, tiger;"\r
"%PGBIN%\psql" -d "%THEDB%" -f "tables\lookup_tables_2010.sql"\r
"%PGBIN%\psql" -d "%THEDB%" -c "CREATE SCHEMA tiger_data"\r
"%PGBIN%\psql" -d "%THEDB%" -f "tiger_loader.sql"\r
${PSQL_CMD} -d "${THEDB}" -f "${PGCONTRIB}/fuzzystrmatch.sql"
#${PSQL_CMD} -d "${THEDB}" -c "CREATE EXTENSION fuzzystrmatch"
${PSQL_CMD} -d "${THEDB}" -c "CREATE SCHEMA tiger"
+#unremark this next line and edit if you want the search paths set as part of the install
+#${PSQL_CMD} -d "${THEDB}" -c "ALTER DATABASE ${THEDB} SET search_path=public, tiger;"
${PSQL_CMD} -d "${THEDB}" -f "tables/lookup_tables_2010.sql"
${PSQL_CMD} -d "${THEDB}" -c "CREATE SCHEMA tiger_data"
${PSQL_CMD} -d "${THEDB}" -f "tiger_loader.sql"
TMPDIR="${staging_fold}/temp/"
UNZIPTOOL=unzip
WGETTOOL="/usr/bin/wget"
-PGBIN="/usr/pgsql-9.0/bin"
+export PGBIN=/usr/pgsql-9.0/bin
export PGPORT=5432
export PGHOST=localhost
export PGUSER=postgres