Re: Regarding TODO item "%Add a separate TRUNCATE - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Regarding TODO item "%Add a separate TRUNCATE
Date
Msg-id 19648.1146073553@sss.pgh.pa.us
Whole thread Raw
In response to Re: Regarding TODO item "%Add a separate TRUNCATE  (Gevik Babakhani <pgdev@xs4all.nl>)
Responses Re: Regarding TODO item "%Add a separate TRUNCATE
List pgsql-hackers
Gevik Babakhani <pgdev@xs4all.nl> writes:
> Would the privilege apply to the table depending on the table being
> truncated?  

I think the idea is to require TRUNCATE privilege on all the tables
being truncated in the command.  This would substitute for the existing
ownership check.

I do have a concern here, which is that GRANT ALL on a table didn't use
to convey TRUNCATE, but now it will.  However, since GRANT ALL does
confer the right to do "DELETE FROM tab", maybe this isn't an issue.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Regarding TODO item "%Add a separate TRUNCATE permission"
Next
From: Tom Lane
Date:
Subject: Re: Regarding TODO item "%Add a separate TRUNCATE permission"