From: Sandro Santilli Date: Tue, 3 Aug 2004 09:41:03 +0000 (+0000) Subject: geometry_columns and spatial_ref_sys back created from dump X-Git-Tag: pgis_0_9_1~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16d5f6e2b6ec20130fc37ef224e841342f07db42;p=postgis geometry_columns and spatial_ref_sys back created from dump git-svn-id: http://svn.osgeo.org/postgis/trunk@662 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_restore.pl b/utils/postgis_restore.pl index 672ba6044..54a75282f 100644 --- a/utils/postgis_restore.pl +++ b/utils/postgis_restore.pl @@ -7,11 +7,10 @@ # the given postgis.sql. # # A particular attention must be given to the spatial_ref_sys -# and geometry_columns tables which are created from postgis.sql -# and filled using data from dump. If pre-7.5 is restored to 7.5+ -# some columns will be missing from geometry_columns, so they'll -# probably need to be added first and dropped after (currently not -# done). +# and geometry_columns tables which are created and populated +# from the dump, not the postgis.sql file. When the new installation +# is agains pgsql7.5+ and dump from pre7.5 this script should probably +# drop statistic fields from that table.... currently not done. # # Known issues: # - operators from the dump are never restored due to @@ -233,13 +232,13 @@ while( my $line = ) # spatial_ref_sys and geometry_columns elsif ($line =~ / TABLE geometry_columns/) { - print "SKIPPING geometry_columns schema\n" if $DEBUG; - next; + #print "SKIPPING geometry_columns schema\n" if $DEBUG; + #next; } elsif ($line =~ / TABLE spatial_ref_sys/) { - print "SKIPPING spatial_ref_sys schema\n" if $DEBUG; - next; + #print "SKIPPING spatial_ref_sys schema\n" if $DEBUG; + #next; } # Will skip all operators (there is no way to tell from a dump