+2006-11-10 Havard Tveite <havard.tveite@nlh.no>
+
+ * doc/postgix.xml (Hard Upgrade): add info about createdb params
+ * utils/postgis_restore.pl: fix use of createdb params
+
2006-11-02 Sandro Santilli <strk@refractions.net>
* doc/postgis.xml: list setSRID bug fix in 'Bug fixes' section.
# Restore the dump contextually upgrading postgis into
# a new database. The new database doesn't have to exist.
- # Let's call it "newdb"
- $ sh utils/postgis_restore.pl lwpostgis.sql newdb olddb.dump > restore.log
+ # postgis_restore accepts createdb parameters after the dump
+ # file name, and that can for instance be used if you are using
+ # a non-default character encoding for your database.
+ # Let's call it "newdb", with UNICODE as the character encoding:
+ $ sh utils/postgis_restore.pl lwpostgis.sql newdb olddb.dump -E=UNICODE > restore.log
# Check that all restored dump objects really had to be restored from dump
# and do not conflict with the ones defined in lwpostgis.sql
# Create the new db and install plpgsql language
#
print "Creating db ($dbname)\n";
-`createdb $dbname $createdb_opt`;
+`createdb $createdb_opt $dbname`;
die "Database creation failed\n" if ($?);
print "Adding plpgsql\n";
`createlang plpgsql $dbname`;