Re: Only owners can ANALYZE tables...seems overly restrictive

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Only owners can ANALYZE tables...seems overly restrictive
Date: 2016-02-29 05:46:51
Message-ID: 56D3DB4B.2040807@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/28/2016 8:58 PM, Tom Lane wrote:
>> >I should the check for whether a given user can or cannot analyze a table
>> >should be whether the user has INSERT, UPDATE, or DELETE privileges.
> By that argument, we should allow anyone with any write access to do
> TRUNCATE. Or perhaps even DROP TABLE. I'm not impressed.

I don't see why anyone with delete privileges shouldn't be able to
truncate (after all, thats the same as deleting all records).

analyze has arguably fewer side effects, its a performance enhancement,
its neither altering the schema or changing the data.

--
john r pierce, recycling bits in santa cruz

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vitaly Burovoy 2016-02-29 06:23:03 Re: Only owners can ANALYZE tables...seems overly restrictive
Previous Message David G. Johnston 2016-02-29 05:39:17 Re: Only owners can ANALYZE tables...seems overly restrictive