<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><span class="tab"> This is an update on my issues loading Tiger2011 data to postGIS using Debian's Wheezy, Postgresql 9.1. After starting over from the beginning, I'm down to one error loading data using the included loader scripts as-is. Table tiger.bg doesn't get made on my system with no clue that bg didn't get made unless I check my log file.<br><br><br></span><div>psql -d geocoder -f /home/postgis/postgis/postgis-2.1.0SVN/extras/tiger_geocoder/tiger_2011/census_loader.sql setsearchpathforinstall<br>------------------------------------------<br> tiger has been made primary for install<br>(1 row)<br><br>CREATE
FUNCTION<br>psql:/home/postgis/postgis/postgis-2.1.0SVN/extras/tiger_geocoder/tiger_2011/census_loader.sql:108: NOTICE: function loader_generate_census(text[],text) does not exist, skipping<br>DROP FUNCTION<br>CREATE FUNCTION<br>DELETE 3<br>INSERT 0 1<br>INSERT 0 1<br>INSERT 0 1<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">There's no bg table made. If I change the stanza from CREATE TABLE bg to CREATE TABLE tiger.bg, there's still nothing made and no error in postgresql logs! If I take the bg table query out and put it in an editor without the RETURN stanza, the table is made.<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new
roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Here's the error from the logs using CREATE TABLE bg<br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">2012-11-08 07:30:20 PST ERROR: syntax error at or near "RETURN" at character 806<br>2012-11-08 07:30:20 PST STATEMENT: CREATE TABLE bg<br>
(<br> gid serial NOT NULL,<br> statefp varchar(2),<br> countyfp varchar(3),<br> tractce varchar(6),<br> blkgrpce varchar(1),<br> bg_id varchar(12) PRIMARY KEY,<br> namelsad
varchar(13),<br> mtfcc varchar(5),<br> funcstat varchar(1),<br> aland double precision,<br> awater double precision,<br> intptlat varchar(11),<br> intptlon varchar(12),<br> the_geom
geometry,<br> CONSTRAINT enforce_dims_geom CHECK (st_ndims(the_geom) = 2),<br> CONSTRAINT enforce_geotype_geom CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL),<br> CONSTRAINT enforce_srid_geom CHECK (st_srid(the_geom) = 4269)<br> );<br> COMMENT ON TABLE tiger.bg IS 'block groups';<br> RETURN 'Done creating census tract base tables - $Id: census_loader.sql 10179
2012-08-13 21:45:39Z robe $';</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br><br></div></div></body></html>