Re: Reworks of DML permission checks

Robert Haas <robertmhaas@gmail.com>

From: Robert Haas <robertmhaas@gmail.com>
To: KaiGai Kohei <kaigai@ak.jp.nec.com>
Cc: Stephen Frost <sfrost@snowman.net>, pgsql-hackers@postgresql.org
Date: 2010-07-22T00:48:59Z
Lists: pgsql-hackers
2010/7/19 KaiGai Kohei <kaigai@ak.jp.nec.com>:
> The attached patch is the revised one.
>
> * It was rebased to the latest git HEAD.
> * Prototype of ExecCheckRTEPerms() was changed; it become to return
>  a bool value to inform the caller its access control decision, and
>  its 'ereport_on_violation' argument has gone.
> * ExecCheckRTPerms() calls aclcheck_error() when ExecCheckRTEPerms()
>  returned false, and 'ereport_on_violation' is true.
> * Add '#include "executor/executor.h"' on the ri_triggers.c.

Committed with some changes to the comments.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company