]> granicus.if.org Git - postgis/commitdiff
add remarked out line to set search path -- suggested by Brian Hamlin. Also some...
authorRegina Obe <lr@pcorp.us>
Mon, 30 May 2011 00:30:58 +0000 (00:30 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 30 May 2011 00:30:58 +0000 (00:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7284 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/create_geocode.bat
extras/tiger_geocoder/tiger_2010/create_geocode.sh
extras/tiger_geocoder/tiger_2010/tiger_loader.sql

index 2a4d3158e77247ee9c890f0a6bbce3b59098e896..8cbe16c82529d637d30604902df630702ea711cb 100644 (file)
@@ -10,6 +10,8 @@ set PGCONTRIB=C:\Program Files\PostgreSQL\9.0\share\contrib
 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
index 27328768de82ccff78a207ef15a53bf62fb6aa3a..6f0b15cd24c5c6b0da330059f68edf24fccce905 100644 (file)
@@ -11,6 +11,8 @@ PGCONTRIB=/usr/share/postgresql/contrib
 ${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"
index c215ff2a8ee76e2afaaff6e47a08f6f4530eef84..7a143b3c870268ebe045db4a0cc30bb33dfa2724 100644 (file)
@@ -66,7 +66,7 @@ STATEDIR="${staging_fold}/${website_root}/${state_fold}"
 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