i uninstalled my old postgresql and now installed the 8.3 final version that came out yesterday.
getting the same problem:
[codek0d]2008/02/05 15:58:52.234: [- Main -][PostgresConnection (Error)] Unable to execute query: CREATE DATABASE "PT3_beta3" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII'; ALTER DATABASE "PT3_beta3" OWNER TO postgres;; Reason: Fatal Error (ERROR: CREATE DATABASE cannot be executed from a function or multi-command string )[/codek0d]
maybe do "create database" and "alter database" in two seperate statements?
or use the same single-statement syntax that pgAdmin uses when creating a new database
[codek0d]CREATE DATABASE test
WITH OWNER = postgres
ENCODING = 'UTF8';[/codek0d]
and add the TEMPLATE thing