Re: [GENERAL] What user to defaults execute as? - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: [GENERAL] What user to defaults execute as?
Date
Msg-id 20021102055542.GA3848@wolff.to
Whole thread Raw
In response to Re: [GENERAL] What user to defaults execute as?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [GENERAL] What user to defaults execute as?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Fri, Nov 01, 2002 at 21:35:40 -0500, Bruce Momjian <pgman@candle.pha.pa.us> wrote:
> 
> I think we open up more security problems by having the inserter doing
> things as the owner of the table.

With triggers it is a bit hard to decide. Since people other than the
table owner can create them, but then they effectively belong to the
table owner. I think that makes having them execute as the table
owner reasonable. The table owner is taking his chances by letting
other people create triggers on his table.

For constraints and default expressions I don't see any problems for
having them execute as the table owner. This provides a small advantage
in providing limited update ability for sequences, that would otherwise
require creating a function to achieve.

As long as people realize that when they insert, update or delete from
a table owned by someone else they need to trust that person it probably
isn't a big deal. The descriptions of triggers hint at this but from
a different perspective (that of a table owner letting people create
triggers on his table) and people might not make the connection (assuming
they even read about triggers).


pgsql-hackers by date:

Previous
From: Lamar Owen
Date:
Subject: Re: about postgresql-7.2.3 rpm
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] What user to defaults execute as?