[postgis-devel] postgis_restore.pl problem

Daniele Debernardi daniele at geosar.ch
Thu Jan 24 07:25:36 PST 2013


Hi,
using the postgis_restore.pl in postgis 2.0.2, I found a problem when he 
rewrite the spatial table constraints (around line ~230),
he skips geometry columns that has upper case letters and than they have 
double "" around it.

changing the line:
if ( $subline =~ /CONSTRAINT enforce_srid_/i ) {

to:
if ( $subline =~ /CONSTRAINT enforce_srid_/i || $subline =~ /CONSTRAINT 
"enforce_srid_/i) {

solves the problem considering them too

Best regards
Daniele



More information about the postgis-devel mailing list