]> granicus.if.org Git - postgis/commitdiff
geometry_columns and spatial_ref_sys back created from dump
authorSandro Santilli <strk@keybit.net>
Tue, 3 Aug 2004 09:41:03 +0000 (09:41 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 3 Aug 2004 09:41:03 +0000 (09:41 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@662 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_restore.pl

index 672ba60449c1797f94672492bafdf25f628bb2e1..54a75282f5e3bbe46754db4466116724df766fd0 100644 (file)
@@ -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 = <INPUT> )
        # 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