> > However, when I try the exact same statement with a different user,
> > I get the error message:
> > ERROR: data: Permission denied.
> >
> > When I remove the ins_data rule, the INSERT works for the other
> > users as well. Does the rule need access to the data table? Is this
> > a bug or am I doing something wrong?
>
> Anything seems right for me. And I cannot reproduce this
> error in the current developers tree (it works as it should).
>
> Which version of PG are you using?
Today, I installed PG 6.5.3, which behaves exactly the same.
Prior I have been using PG 6.5.1.
Martin