[postgis-commits] svn - r3047 - trunk/utils

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Thu Oct 2 09:00:22 PDT 2008


Author: pramsey
Date: 2008-10-02 09:00:22 -0700 (Thu, 02 Oct 2008)
New Revision: 3047

Modified:
   trunk/utils/postgis_restore.pl
Log:
pass commandline options into backend command (#45)


Modified: trunk/utils/postgis_restore.pl
===================================================================
--- trunk/utils/postgis_restore.pl	2008-10-02 15:59:41 UTC (rev 3046)
+++ trunk/utils/postgis_restore.pl	2008-10-02 16:00:22 UTC (rev 3047)
@@ -685,12 +685,12 @@
 `createdb $createdb_opt $dbname`;
 die "Database creation failed\n" if ($?);
 print "Adding plpgsql\n";
-`createlang plpgsql $dbname`;
+`createlang $createdb_opt plpgsql $dbname`;
 
 #
 # Open a pipe to the SQL monitor
 #
-open( PSQL, "| psql -a $dbname") || die "Can't run psql\n";
+open( PSQL, "| psql $createdb_opt -a $dbname") || die "Can't run psql\n";
 
 #
 # Source new postgis.sql



More information about the postgis-commits mailing list