Re: Question on TRUNCATE privleges - Mailing list pgsql-novice

From Tom Lane
Subject Re: Question on TRUNCATE privleges
Date
Msg-id 27861.1109283342@sss.pgh.pa.us
Whole thread Raw
In response to Re: Question on TRUNCATE privleges  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Question on TRUNCATE privleges  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Question on TRUNCATE privleges  ("Keith Worthington" <keithw@narrowpathinc.com>)
List pgsql-novice
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Uh, that seems like it adds extra complexity just for this single case.

Yeah.  I've dropped the idea personally -- the suggestion that the table
owner can provide a SECURITY DEFINER procedure to do the TRUNCATE if he
wants to allow others to do it seems to me to cover the problem.

> Why don't we allow TRUNCATE by non-owners only if no triggers are
> defined, and if they are defined, we throw an error and mention it is
> because triggers/contraints exist?

I don't think we should put weird special cases in the rights checking
to allow this -- that's usually a recipe for introducing unintended
security holes.

            regards, tom lane

pgsql-novice by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Question on TRUNCATE privleges
Next
From: Bruce Momjian
Date:
Subject: Re: Question on TRUNCATE privleges