saltstack/salt — pull request #2520 by bclermont (2012-11-11 14:55:23+00:00)
Title: fix ENCRYPTED usage on user creation

from [8.4](http://www.postgresql.org/docs/8.4/interactive/sql-createrole.html) to
[9.2](http://www.postgresql.org/docs/9.2/interactive/sql-createrole.html) (I did not looked in previous versions) the doc says ``ENCRYPTED`` must be **before** the ``PASSWORD`` statement.

and I made it used only if a password is specified, if not the ``ENCRYPTED`` statement will be in the SQL statement and break it.