]> granicus.if.org Git - postgis/commitdiff
Remove createdb_opt lines from psql and createlang calls. (#228)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 5 Nov 2009 00:43:29 +0000 (00:43 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 5 Nov 2009 00:43:29 +0000 (00:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4746 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_restore.pl

index c5bab6650aa2fc53676a01cdd7ffb709fff36f4c..2c24f18cca81636498033e084171477bd0ce89a9 100644 (file)
@@ -44,7 +44,7 @@ eval "exec perl -w $0 $@"
 
 use strict;
 
-(@ARGV >= 3) || die "Usage: postgis_restore.pl <postgis.sql> <db> <dump> [<createdb_options>]\nRestore a custom dump (pg_dump -Fc) of a postgis enabled database.\n";
+(@ARGV >= 3) || die "Usage: postgis_restore.pl <postgis.sql> <db> <dump> ["<createdb_options>]\nRestore a custom dump (pg_dump -Fc) of a postgis enabled database.\n";
 
 my $DEBUG=1;
 
@@ -712,12 +712,12 @@ print "Creating db ($dbname)\n";
 `createdb $createdb_opt $dbname`;
 die "Database creation failed\n" if ($?);
 print "Adding plpgsql\n";
-`createlang $createdb_opt plpgsql $dbname`;
+`createlang plpgsql $dbname`;
 
 #
 # Open a pipe to the SQL monitor
 #
-open( PSQL, "| psql $createdb_opt -a $dbname") || die "Can't run psql\n";
+open( PSQL, "| psql -a $dbname") || die "Can't run psql\n";
 
 #
 # Source new postgis.sql