# CREATE DATABASE ${db_name} $ENCODING TEMPLATE template0
#
if $bindir/psql -f - -d template1 $* <<END-OF-DATA
-CREATE DATABASE ${db_name} $ENCODING;
+CREATE DATABASE ${db_name} $ENCODING TEMPLATE template0;
ALTER DATABASE ${db_name} SET datestyle TO 'ISO, YMD';
END-OF-DATA
then
# To read back a PostgreSQL database use:
# cd @working_dir@
# dropdb bacula
-# createdb bacula -E SQL_ASCII
+# createdb bacula -T template0 -E SQL_ASCII
# psql bacula <bacula.sql
#
REM To read back a PostgreSQL database use:\r
REM cd @working_dir_cmd@\r
REM dropdb bacula\r
-REM createdb bacula\r
+REM createdb -T template0 -E SQL_ASCII bacula\r
REM psql bacula < bacula.sql\r
REM\r
EXIT /b 0\r
REM To read back a PostgreSQL database use:\r
REM cd @working_dir_cmd@\r
REM dropdb bacula\r
-REM createdb bacula\r
+REM createdb -T template0 -E SQL_ASCII bacula\r
REM psql bacula < bacula.sql\r
REM \r
EXIT /b 0\r
REM To read back a PostgreSQL database use:\r
REM cd @working_dir_cmd@\r
REM dropdb bacula\r
-REM createdb bacula\r
+REM createdb -T template0 -E SQL_ASCII bacula\r
REM psql bacula < bacula.sql\r
REM \r
EXIT /b 0\r