hasura / audit-trigger

Simple, easily customised trigger-based auditing for hasura graphql engine
Other
121 stars 21 forks source link

Fails with Postgres 12 #4

Open hawkeye64 opened 4 years ago

hawkeye64 commented 4 years ago
{
    "internal": [
        {
            "definition": {
                "schema": "audit",
                "name": "if_modified_func"
            },
            "reason": "in function \"audit.if_modified_func\": the function \"audit.if_modified_func\" cannot be tracked for the following reasons:\n  • the function does not return a \"COMPOSITE\" type\n  • the function does not return a SETOF\n  • the function does not return a SETOF table\n  • function of type \"VOLATILE\" is not supported now\n",
            "type": "function"
        }
    ],
    "path": "$.args[2].args",
    "error": "in function \"audit.if_modified_func\": the function \"audit.if_modified_func\" cannot be tracked for the following reasons:\n  • the function does not return a \"COMPOSITE\" type\n  • the function does not return a SETOF\n  • the function does not return a SETOF table\n  • function of type \"VOLATILE\" is not supported now\n",
    "code": "constraint-violation"
}
hawkeye64 commented 4 years ago

This does work, as long as you don't track it with Hasura

hawkeye64 commented 4 years ago

I guess the question is, should this be tracked?