Re: Only owners can ANALYZE tables...seems overly restrictive - Mailing list pgsql-general

From Tom Lane
Subject Re: Only owners can ANALYZE tables...seems overly restrictive
Date
Msg-id 4167.1456721904@sss.pgh.pa.us
Whole thread Raw
In response to Only owners can ANALYZE tables...seems overly restrictive  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Only owners can ANALYZE tables...seems overly restrictive  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Only owners can ANALYZE tables...seems overly restrictive  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> Given the amount of damage a person with write access to a table can get
> into it seems pointless to not allow them to analyze the table after their
> updates - since best practices would say that normal work with a table
> should not be performed by an owner.

> 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.

            regards, tom lane


pgsql-general by date:

Previous
From: "David G. Johnston"
Date:
Subject: Only owners can ANALYZE tables...seems overly restrictive
Next
From: "David G. Johnston"
Date:
Subject: Re: Only owners can ANALYZE tables...seems overly restrictive