def postgres(command):
 show = (not command.startswith(u'psql'))
 return sudo(command, show=show, user=u'postgres')

def postgres ( command ) : show = ( not command . startswith ( u'psql' ) ) return sudo ( command , show = show , user = u'postgres' )
runs the given command as the postgres user .