saltstack/salt — pull request #1783 by scott-w (2012-08-07 09:33:38+00:00)
Title: Use explicit field name declarations in user_list

I've amended the user_list() function so that it explicitly names the pg_roles fields that are in all supported versions of Postgres.

I made a mistake in my initial report on #1766, I appear to be running Postgres 8.4, which has one less field in its pg_roles view than Postgres 9.1 (thus the error when constructing lines).

The downside is that users of newer versions of Postgres cannot view the status of rolreplication. Perhaps a future fix will check the version of Postgres and use the correct information.