saltstack/salt — pull request #1700 by imankulov (2012-07-26 17:44:55+00:00)
Title: Improve PostgreSQL support

- Unified way of invocation of the "psql" command, get rid of
"dropdb" and similar command wrappers
- "host", "port" and "user" are not required options of psql command
anymore
- Fix "local" -> "locale"
- Add "runas" option to all posgres module functions and states
- Add "superuser" argument to user_create command
- Add all available module function arguments to
postgres_database.present state

Default values for host and port made it impossible to use "local"
method of authentication.

Lack of "runas" option made it hard to "start off from scratch", at
least in Debian/Ubuntu installation, where the recommended way to create
the very first new user is to make it with "su - postgres"

Please note, some functions work without the fix #1698, unfortunately