[postgis-devel] [PostGIS] #1865: Data loss in postgis_restore.pl when data rows have leading dashes

PostGIS trac at osgeo.org
Wed Jun 13 11:10:24 PDT 2012


#1865: Data loss in postgis_restore.pl when data rows have leading dashes
-----------------------+----------------------------------------------------
 Reporter:  darkpanda  |       Owner:  pramsey      
     Type:  defect     |      Status:  new          
 Priority:  high       |   Milestone:  PostGIS 2.0.1
Component:  postgis    |     Version:  2.0.x        
 Keywords:             |  
-----------------------+----------------------------------------------------
 postgis_restore.pl can skip over valid data in COPY statements if a row
 line begins with leading dashes, i.e. appears to be an SQL comment.

 Attached is a patch that checks for COPY commands and for the accompanying
 "\." line that completes them and avoids stripping comments for the
 duration.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1865>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list