diff --git a/postgresql/helpers.go b/postgresql/helpers.go index 54e462d9..fa06849d 100644 --- a/postgresql/helpers.go +++ b/postgresql/helpers.go @@ -251,7 +251,7 @@ func sliceContainsStr(haystack []string, needle string) bool { // see: https://www.postgresql.org/docs/current/sql-grant.html var allowedPrivileges = map[string][]string{ "database": {"ALL", "CREATE", "CONNECT", "TEMPORARY"}, - "table": {"ALL", "SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER"}, + "table": {"ALL", "SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER", "MAINTAIN"}, "sequence": {"ALL", "USAGE", "SELECT", "UPDATE"}, "schema": {"ALL", "CREATE", "USAGE"}, "function": {"ALL", "EXECUTE"}, diff --git a/postgresql/helpers_test.go b/postgresql/helpers_test.go index 57066f2e..c677af13 100644 --- a/postgresql/helpers_test.go +++ b/postgresql/helpers_test.go @@ -71,7 +71,7 @@ func TestArePrivilegesEqual(t *testing.T) { }, { buildResourceData("table", t), - buildPrivilegesSet("SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER"), + buildPrivilegesSet("SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER", "MAINTAIN"), buildPrivilegesSet("ALL"), true, },