I have trouble to execute a SQL script via command line, this is what I have
"C:\..\psql.exe" -h my_server_host -U username -c 'CREATE DATABASE test;'
I got this error:
psql: warning: extra command-line argument "test;'" ignored
psql: FATAL: database "DATABASE" does not exist
I am on Windows 7 with Postgresql 9.3.
Any idea how to do that?