Opened 3 years ago
Closed 2 years ago
#5041 closed defect (fixed)
loader_generate_script generates script with invalid syntax
Reported by: | naoko | Owned by: | robe |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 3.1.5 |
Component: | tiger geocoder | Version: | 2.5.x -- EOL |
Keywords: | Cc: |
Description
loader_generate_script generated the following 2 lines which is invalid syntax
`
ALTER TABLE tiger_staging.UT_tract RENAME geoid IF EXISTS TO tract_id;
ALTER TABLE tiger_staging.UT_tract RENAME geoid10 IF EXISTS TO tract_id;
`
also
`
gisdb=# select table_name, lookup_name, process_order, lookup_name, level_state, load from tiger.loader_lookuptables where table_name LIKE 'tabblock%';
table_name | lookup_name | process_order | lookup_name | level_state | load
tabblock10 | tabblock | 11 | tabblock | t | f tabblock20 | tabblock20 | 11 | tabblock20 | t | t
(2 rows)
`
cause the link to be created like this
`
wget https://www2.census.gov/geo/tiger/TIGER2018/TABBLOCK20/tl_2018_49_tabblock20.zip —mirror —reject=html
`
but tabblock20 do not exists but tabblock10 do.
Change History (5)
comment:1 by , 3 years ago
Milestone: | PostGIS 3.2.0 → PostGIS 3.1.5 |
---|
comment:5 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I think I might have fixed this already.
Just tested with PostGIS 3.1 branch loading UT.
And result
Although tract seems messed up: