views:

84

answers:

1

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
how do I send this SQL to postgres in a one-liner?
Connect with the psql client and send the query. http://www.postgresql.org/docs/8.4/interactive/app-psql.html
Frank Heikens