$OpenBSD: patch-salt_modules_postgres_py,v 1.3 2015/01/07 09:57:40 ajacoutot Exp $

https://github.com/saltstack/salt/commit/0342964b5b4978d771108ecbbf128b40632af089

--- salt/modules/postgres.py.orig	Mon Nov  3 20:38:21 2014
+++ salt/modules/postgres.py	Wed Jan  7 10:33:06 2015
@@ -83,6 +83,8 @@ def _run_psql(cmd, runas=None, password=None, host=Non
         if not host or host.startswith('/'):
             if 'FreeBSD' in __grains__['os_family']:
                 runas = 'pgsql'
+            if 'OpenBSD' in __grains__['os_family']:
+                runas = '_postgresql'
             else:
                 runas = 'postgres'
 
