]> granicus.if.org Git - postgis/commitdiff
make debug statement conditional
authorRegina Obe <lr@pcorp.us>
Sun, 12 Jun 2011 04:55:30 +0000 (04:55 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 12 Jun 2011 04:55:30 +0000 (04:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7378 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2010/geocode/reverse_geocode.sql

index 19c914d76271fb7f1bcf2f2ac989860b643b0e59..dfdb2609d7672ebdc5b7a9b5eb8b2473811875fe 100644 (file)
@@ -97,7 +97,10 @@ BEGIN
                                ORDER BY ST_Distance(e.the_geom, ' || quote_literal(var_pt::text) || '::geometry) LIMIT 4) As foo 
                                WHERE dist < 150 --less than 150 m
                                ORDER BY foo.fullname, foo.dist) As f ORDER BY f.dist ';
-       RAISE NOTICE 'Statement 1: %', var_stmt;
+                               
+       IF var_debug THEN
+           RAISE NOTICE 'Statement 1: %', var_stmt;
+       END IF;
        /** FOR var_redge IN
                SELECT * 
                FROM (SELECT DISTINCT ON(fullname)  foo.fullname, foo.stusps, foo.zip,