Commit 2ad465db authored by Regina Obe's avatar Regina Obe

schema qualify tiger tables

git-svn-id: http://svn.osgeo.org/postgis/trunk@17261 b70326c6-7e19-0410-871a-916f4a2858ee
parent 3abc9a25
Pipeline #48113414 passed with stage
in 31 minutes and 30 seconds
......@@ -411,8 +411,8 @@ SELECT
, ARRAY['psql', 'data_schema','staging_schema', 'staging_fold', 'website_root'],
ARRAY[platform.psql, variables.data_schema, variables.staging_schema, variables.staging_fold, variables.website_root])
AS shell_code
FROM loader_variables As variables
CROSS JOIN loader_platform As platform
FROM tiger.loader_variables As variables
CROSS JOIN tiger.loader_platform As platform
WHERE platform.os = $1 -- generate script for selected platform
;
$BODY$
......@@ -440,7 +440,7 @@ SELECT
|| '_' || lu.table_name || '.dbf tiger_staging.' || lower(s.state_abbrev) || '_' || lu.table_name || ' | '::text || platform.psql
|| COALESCE(E'\n' ||
lu.post_load_process , '') , ARRAY['loader','table_name', 'lookup_name'], ARRAY[platform.loader, lu.table_name, lu.lookup_name ])
FROM loader_lookuptables AS lu
FROM tiger.loader_lookuptables AS lu
WHERE level_state = true AND load = true
ORDER BY process_order, lookup_name), E'\n') ::text
-- County Level files
......@@ -465,7 +465,7 @@ FROM loader_variables As variables
CROSS JOIN (SELECT name As state, abbrev As state_abbrev, lpad(st_code::text,2,'0') As state_fips,
lpad(st_code::text,2,'0') || '_'
|| replace(name, ' ', '_') As state_fold
FROM state_lookup) As s CROSS JOIN loader_platform As platform
FROM tiger.state_lookup) As s CROSS JOIN tiger.loader_platform As platform
WHERE $1 @> ARRAY[state_abbrev::text] -- If state is contained in list of states input generate script for it
AND platform.os = $2 -- generate script for selected platform
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment