From: Regina Obe Date: Sat, 11 Aug 2012 19:58:33 +0000 (+0000) Subject: #1838 -- tabblock not loading. oops committed wrong change. Revert previous change... X-Git-Tag: 2.1.0beta2~697 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61a3df9ed8826b1fd6a1ce8e03e520adf9568031;p=postgis #1838 -- tabblock not loading. oops committed wrong change. Revert previous change and make correct change. git-svn-id: http://svn.osgeo.org/postgis/trunk@10178 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/extras/tiger_geocoder/tiger_2011/census_loader.sql b/extras/tiger_geocoder/tiger_2011/census_loader.sql index a5b34d060..42c7f38ab 100644 --- a/extras/tiger_geocoder/tiger_2011/census_loader.sql +++ b/extras/tiger_geocoder/tiger_2011/census_loader.sql @@ -166,7 +166,7 @@ VALUES(10, 'tract', 'tract', true, false, true,false, 'c', INSERT INTO loader_lookuptables(process_order, lookup_name, table_name, load, level_county, level_state, single_geom_mode, insert_mode, pre_load_process, post_load_process, columns_exclude ) VALUES(11, 'tabblock', 'tabblock', true, false, true,false, 'c', '${psql} -c "CREATE TABLE ${data_schema}.${state_abbrev}_${lookup_name}(CONSTRAINT pk_${state_abbrev}_${lookup_name} PRIMARY KEY (tabblock_id)) INHERITS(tiger.${lookup_name});" ', -'${psql} -c "ALTER TABLE ${staging_schema}.${state_abbrev}_${table_name} RENAME geoid TO tabblock_id; SELECT loader_load_staged_data(lower(''${state_abbrev}_${table_name}''), lower(''${state_abbrev}_${lookup_name}'')); " +'${psql} -c "ALTER TABLE ${staging_schema}.${state_abbrev}_${table_name} RENAME geoid TO tabblock_id; SELECT loader_load_staged_data(lower(''${state_abbrev}_${table_name}''), lower(''${state_abbrev}_${lookup_name}''), ''{gid, statefp10, countyfp10, tractce10, blockce10,suffix1ce,blockce,tractce}''::text[]); " ${psql} -c "ALTER TABLE ${data_schema}.${state_abbrev}_${lookup_name} ADD CONSTRAINT chk_statefp CHECK (statefp = ''${state_fips}'');" ${psql} -c "CREATE INDEX ${data_schema}_${state_abbrev}_${lookup_name}_the_geom_gist ON ${data_schema}.${state_abbrev}_${lookup_name} USING gist(the_geom);" ${psql} -c "vacuum analyze ${data_schema}.${state_abbrev}_${lookup_name};"', ARRAY['gid']); diff --git a/extras/tiger_geocoder/tiger_2011/tiger_loader_2011.sql b/extras/tiger_geocoder/tiger_2011/tiger_loader_2011.sql index e033e158d..8d58fa530 100644 --- a/extras/tiger_geocoder/tiger_2011/tiger_loader_2011.sql +++ b/extras/tiger_geocoder/tiger_2011/tiger_loader_2011.sql @@ -366,7 +366,7 @@ RETURNS integer AS $$ -- exclude this set list of columns if no exclusion list is specified SELECT loader_load_staged_data($1, $2,(SELECT COALESCE(columns_exclude,ARRAY['gid', 'geoid','cpi','suffix1ce', 'statefp00', 'statefp10', 'countyfp00','countyfp10' - ,'tractce00','tractce10', 'blkgrpce00', 'blkgrpce10', 'blockce00', 'blockce10', 'suffix1ce' + ,'tractce00','tractce10', 'blkgrpce00', 'blkgrpce10', 'blockce00', 'blockce10' , 'cousubfp00', 'submcdfp00', 'conctyfp00', 'placefp00', 'aiannhfp00', 'aiannhce00', 'comptyp00', 'trsubfp00', 'trsubce00', 'anrcfp00', 'elsdlea00', 'scsdlea00', 'unsdlea00', 'uace00', 'cd108fp', 'sldust00', 'sldlst00', 'vtdst00', 'zcta5ce00',