I want to create a database user for my setup fabric script but createuser has interactive password entering and seams not to like fabric.
A:
Just use plain SQL to create a new user:
CREATE ROLE user_name WITH ENCRYPTED PASSWORD 'your password';
Frank Heikens
2010-04-19 11:36:14
how do I send this SQL to postgres in a one-liner?
2010-04-19 12:10:41
Connect with the psql client and send the query. http://www.postgresql.org/docs/8.4/interactive/app-psql.html
Frank Heikens
2010-04-19 12:41:02