heynemann/provy — pull request #81 by fernandogrd (2012-12-18 04:17:12+00:00)
Title:  Make __execute method of postgresql protect (_execute)

I see two cases for this to be more open:

- Allow subclasses (ex: A PostGisRole) to easily make benefit of method, instead of reimplementing it.
- Allow subclasses to modify method behavior

About the second item. I could override execute method of Role class to change the behavior of __execute method of PostgreSQLRole. But I think it is a too wide escope, in my case, changing the behavior of __execute method matches exactly the case I needed to modify.

To point out. I needed to change directory before running commands under postgres user, because psql complains in some cases about running commands under user directory in CentOS.