Re: [PATCHES] TRUNCATE, VACUUM, ANALYZE privileges

2006-01-04 Thread Tom Lane
Stephen Frost <[EMAIL PROTECTED]> writes: > GRANT ADD COLUMN, etc, aren't maintenance commands, they're DDL > statements and as such should be the purview of the owner. TRUNCATE, > VACUUM and ANALYZE are DML commands and are commands a user of > the table would use through the normal course of ins

Re: [PATCHES] TRUNCATE, VACUUM, ANALYZE privileges

2006-01-04 Thread Stephen Frost
* daveg ([EMAIL PROTECTED]) wrote: > We rely heavily on truncate as delete for large numbers of rows is very > costly. An example, we copy_in batches of rows from several sources through > the day to a "pending work" table, with another process periodically > processing the rows and sweeping them

Re: [PATCHES] TRUNCATE, VACUUM, ANALYZE privileges

2006-01-04 Thread Stephen Frost
* Tom Lane ([EMAIL PROTECTED]) wrote: > Stephen Frost <[EMAIL PROTECTED]> writes: > > The following patch implements individual privileges for TRUNCATE, > > VACUUM and ANALYZE. Includes documentation and regression test > > updates. Resolves TODO item 'Add a separate TRUNCATE permission'. >

Re: [PATCHES] TRUNCATE, VACUUM, ANALYZE privileges

2006-01-03 Thread daveg
On Tue, Jan 03, 2006 at 11:32:01PM -0500, Tom Lane wrote: > Stephen Frost <[EMAIL PROTECTED]> writes: > > The following patch implements individual privileges for TRUNCATE, > > VACUUM and ANALYZE. Includes documentation and regression test > > updates. Resolves TODO item 'Add a separate TRU

Re: [PATCHES] TRUNCATE, VACUUM, ANALYZE privileges

2006-01-03 Thread Tom Lane
Stephen Frost <[EMAIL PROTECTED]> writes: > The following patch implements individual privileges for TRUNCATE, > VACUUM and ANALYZE. Includes documentation and regression test > updates. Resolves TODO item 'Add a separate TRUNCATE permission'. > At least the 'no one interested has writte